Skip to content

Inviz/testling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testling

Run browser unit tests headlessly with jsdom locally and remotely with testling.com.

example

To run a test locally, just:

$ testling test.js 
node/jsdom                      1/1  100 % ok
$ 

To run the same test on remote browsers, just add --browsers=...!

$ testling test.js --browsers=iexplore/7.0,iexplore/8.0,firefox/3.5
Bundling...  done

iexplore/7.0        0/1    0 % ok
  Error: 'JSON' is undefined
    at [anonymous]() in /test.js : line: 4, column: 5
    at [anonymous]() in /test.js : line: 3, column: 29
    at test() in /test.js : line: 3, column: 1

  > t.deepEqual(JSON.parse('[1,2]'), [1,2]);

iexplore/8.0        1/1  100 % ok
firefox/3.5         1/1  100 % ok

total               2/3   66 % ok
$ 

Super easy!

For more information, consult the testling documentation.

usage

Usage: testling [test files] {OPTIONS}

Options:
  --browsers, -b     Run your tests remotely in real browsers on testling.com.

  --output, -o       The output format to use in remote mode.
      http://testling.com/docs/#output-parameter
                 
  --noinstrument     Turn off instrumentation for particular files in remote mode.
      http://testling.com/docs/#noinstrument

  --browserlist, -l  Show the available browsers on testling.com.

  --config           Read configuration information from this file.

install

With npm just do:

npm install -g testling

attack of the testlings!

About

unit tests in all the browsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%