GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — node-sdk/test at master · kcheat/node-sdk

Expand file tree

/

test

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

test

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
integration
integration
 
 
resources
resources
 
 
unit
unit
 
 
.eslintrc.js
.eslintrc.js
 
 
readme.md
readme.md
 
 

readme.md

Outline

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
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.