0.0.7 • Published 10 years ago

expressjs-unit-tests v0.0.7

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

Expressjs-unit-tests

Build Status

Install

$npm install expressjs-unit-tests

Use in your tests

Use this function for run unit tests unitTests.testGenerate(express_app,PORT, cb);

var unitTests = require('expressjs-unit-tests');
var app = require('../server.js').express_app();

unitTests(app,3300, function(){});

Use with mocha

Use this function for run unit tests unitTests.testGenerate(express_app,PORT, cb);

var unitTests = require('expressjs-unit-tests');
var app = require('../server.js').express_app();
describe('Express untits Tests ', function(){
    unitTests.testGenerate(app,3300, function(){});
});

TODOs

  • Add vars for specific urls
  • Manage Post/PUT/DEL
  • Manage auth
0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago