Fixed processing of test libraries in folders starting with dot

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 519d125cd8
commit da5a6c4dfb
  1. 7
      BuildServer/lib/tasks/dotnetnunitall.js

@ -6,14 +6,17 @@ var dotNetBuilderWrapper = require('./dotnetbuilderwrapper');
module.exports = function (params, processor) {
return {
process: function () {
glob("**/bin/**/*.{Tests,Test,UnitTests}.dll", {cwd: processor.context.exported}, function (err, files) {
glob("**/bin/**/*.{Tests,Test,UnitTests}.dll", {
dot: true,
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");
processor.onError("No test assemblies found in " + processor.context.exported);
return processor.done();
}

Loading…
Cancel
Save