Implemented nunit-all task

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent 8f9cc2021e
commit 4c612c98f1
  1. 37
      BuildServer/lib/tasks/dotnetnunitall.js
  2. 3
      BuildServer/package.json

@ -0,0 +1,37 @@
"use strict";
var glob = require('glob');
var dotNetBuilderWrapper = require('./dotnetbuilderwrapper');
module.exports = function (params, processor) {
return {
process: function () {
glob("**/bin/**/*.{Tests,Test}.dll", {cwd: processor.context.exported}, function (err, files) {
if (err) {
processor.onError(err);
return processor.done();
}
if (!files || !files.length) {
processor.onError("No test assemblies found");
return processor.done();
}
return processor.processTask({
type: "parallel",
params: {
tasks: files.map(function (file) {
return {
name: file,
type: "dotnetnunit",
params: {
assembly: file
}
};
})
}
}, processor.done.bind(processor));
})
}
};
};

@ -11,6 +11,7 @@
"async": "~0.2.9",
"fs-extra": "~0.8.1",
"git-node": "~0.1.1",
"request": "~2.27.0"
"request": "~2.27.0",
"glob": "~3.2.7"
}
}

Loading…
Cancel
Save