Following on from this question.
If I have a build with two instances of the Test task, what is the best (cleanest, least code, most robust) way to completely separate those two tasks so that their outputs don’t overlap?
I’ve tried setting their testResultsDir and testReportsDir properties, but that didn’t seem to work as expected. (That is, the output got written to separate directories, but still the two tasks re-ran their respective tests with each run.)
Yet again, Rene has pointed me in the right direction. Thank you, Rene.
It turns out that this approach does work, but I must have been doing something wrong.
For reference, I added the following to my build after all the
Testtasks had been defined:This will cause all instances of the
Testtask to be isolated from each other by having their task name as part of their directory hierarchy.However, I still feel that this is a bit evil and there must be a cleaner way of achieving this that I haven’t yet found!