test-environment

An unit-test helper library to execute each test in separate directory.

test-environment

An unit-test helper library to execute each test in separate directory.

usage

set up with mocha tests.

var env = require('test-environment')();
 
describe('your test class', function () {
  before(env.before());
  
  describe('#method', function () {
    it('should works', function () {
      // this test will be executed in ./TestResults/20131204T133000 
    });
  });
  
  after(env.after());
});