Skip to content

Latest commit

 

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test cases

Build Status Dependency Status Coverage Status

Run all the tests

$ npm test

Run a single test

$ mocha -g 'regexp'

Debug the http requests

see request for more information

$ NODE_DEBUG=request mocha -g 'regexp'

Generate code coverage reports

  1. Install mocha and instanbul globally

    $ npm install mocha -g
    $ npm install istanbul -g
  2. Run istanbul

    $ istanbul cover _mocha -- -R spec
  3. Open the coverage results using your browser

    $ ./coverage/lcov-report/index.html

Thing we try to test

Here is the list of things we try to test for each service.

1. parameters not specified
1. parameters mis-named
1. parameters with empty string values
1. parameters specified twice
1. parameters with misformatted values
1. headers not specified
1. authentication missing
1. authentication invalid
1. input too large
1. input too small