var testResource = require('../../../test_resource'),
    runNodeunit = require('../../../../ci/worker/run_nodeunit');

exports.setUp = function (done) {
    process.env.CI_LOG_DISABLED = true;
    done();
};
exports.tearDown = function (done) {
    process.env.CI_LOG_DISABLED = false;
    done();
};


exports['Run node unit test'] = function (test) {
    var filename = testResource.resolveMockFile('mock_nodeunit_test.js');
    runNodeunit({
        files: filename
    }, function (err) {
        test.ifError(err);
        test.done();
    });
};