From 134e1f7355dda95bc6ebbecbbc6343eb81daa8d4 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 23 Oct 2015 16:13:49 +0300 Subject: [PATCH] Warn if nunitall is executed more than once --- BuildServer/lib/tasks/dotnetnunitall.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BuildServer/lib/tasks/dotnetnunitall.js b/BuildServer/lib/tasks/dotnetnunitall.js index 041fdaa..578da7c 100644 --- a/BuildServer/lib/tasks/dotnetnunitall.js +++ b/BuildServer/lib/tasks/dotnetnunitall.js @@ -6,6 +6,12 @@ var dotNetBuilderWrapper = require('./dotnetbuilderwrapper'); module.exports = function (params, processor) { return { process: function () { + if (processor.context.dotnetnunitallDone) { + processor.onWarn("dotnetnunitall task is executed more than once; this is probably a bug in your mbs.json"); + } + + processor.context.dotnetnunitallDone = true; + glob("**/bin/**/*.{Tests,Test,UnitTests}.dll", { dot: true, cwd: processor.context.exported