move all mocha driving into grunt

This commit is contained in:
Spencer Alger
2015-01-09 23:40:27 -07:00
parent c3831c2bf5
commit bbe49c3cc8
2 changed files with 21 additions and 26 deletions

View File

@ -3,11 +3,21 @@ var rootReq = function (p) { return require(require('path').resolve(root, p)); }
var utils = rootReq('grunt/utils');
var _ = rootReq('src/lib/utils');
var JENKINS_REPORTER = 'test/utils/jenkins-reporter.js';
var config = {
unit: {
src: 'test/unit/index.js'
},
jenkins_unit: {
src: 'test/unit/index.js',
options: {
reporter: JENKINS_REPORTER,
output: 'test/junit-node-unit.xml'
}
},
// run the unit tests, and update coverage.html
make_coverage_html: {
src: 'test/unit/coverage.js',
@ -33,6 +43,14 @@ utils.branches.forEach(function (branch) {
config['integration_' + branch] = {
src: 'test/integration/yaml_suite/index_' + _.snakeCase(branch) + '.js'
};
config['jenkins_integration_' + branch] = {
src: 'test/integration/yaml_suite/index_' + _.snakeCase(branch) + '.js',
options: {
reporter: JENKINS_REPORTER,
output: 'test/junit-node-integration.xml'
}
};
});
module.exports = config;