Naughty Programmer's Madness
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

expressjs-unit-tests

0.0.7 • Public • Published

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

Keywords

none

install

npm i expressjs-unit-tests

Downloadsweekly downloads

49

version

0.0.7

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar