|
|
@ -6,14 +6,17 @@ var dotNetBuilderWrapper = require('./dotnetbuilderwrapper'); |
|
|
|
module.exports = function (params, processor) { |
|
|
|
module.exports = function (params, processor) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
process: function () { |
|
|
|
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) { |
|
|
|
if (err) { |
|
|
|
processor.onError(err); |
|
|
|
processor.onError(err); |
|
|
|
return processor.done(); |
|
|
|
return processor.done(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!files || !files.length) { |
|
|
|
if (!files || !files.length) { |
|
|
|
processor.onError("No test assemblies found"); |
|
|
|
processor.onError("No test assemblies found in " + processor.context.exported); |
|
|
|
return processor.done(); |
|
|
|
return processor.done(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|