Coder Social home page Coder Social logo

doctestjs-clt's Introduction

DocTest.js TestKit

A Shell tool to get you started with doctest.js http://doctestjs.org/

Requirements

Python: If you work on a Linux machine or a Mac you should already have it. You can check it by opening a Terminal and typing python.

##Install git clone or download a zip. Optionally you can create an alias in ~/.bashrc

Ex: `alias doctestjs='bash /path/to/doctest.sh'

You'll need to fetch the doctest.js code from github. Its included in this repo as a submodule and you can easily install it using ./doctest.js --install

##Usage:

doctestjs -t tests.js -l http://code.jquery.com/jquery-1.8.3.min.js,mylib.js -p 8999

You should then see

Staring Test on port: 8999
...type k then Enter to end

You can access your test page at

http://127.0.0.1:8999/

Typing k and then Enter will kill the session.

##Options $ doctestjs --help

Display this help text

$ doctestjs -t

A list of tests to build into test page. Ex: ./doctestjs -t mytest.js,/path/to/other.js

$ doctestjs -l

A list of additinal libraries or scripts to include in your test page. You can pass externaly hosted libraries like cdn hosted jquery (aka via http) or your own. Ex:

$ doctestjs -t tests.js -l http://code.jquery.com/jquery-1.8.3.min.js,mylib.js

$ doctestjs -p

The port the server runs on. Defaults to 8999

doctestjs-clt's People

Contributors

asmedrano avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.