expressjs-unit-tests

Expressjs-unit-tests ===================

Expressjs-unit-tests

$npm install expressjs-unit-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 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(){});
});
  • Add vars for specific urls
  • Manage Post/PUT/DEL
  • Manage auth