move all mocha driving into grunt
This commit is contained in:
@ -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;
|
||||
Reference in New Issue
Block a user