You guess me a little: it depends on what you want to do with the exit? If the result is TestResult.xml, which is analyzed by CruiseControl, why do you need several of them?
[change]
Perhaps you can track folders by grouping tests in a class and setting up the output folder in [TestFixtureSetup]?
[change]
You should use testframework as NUnit, I suppose you are familiar with this.
Than a concrete test class you can do:
[TestFixture] public class MyOutPutTests { private string folder; [SetUp] public void InitializeFolder() { this.folder = @"d:\MyFirstOutputTests"; } [Test] public void OutImages() { ... write to this.folder } [Test] public void OutputLogs() { .. write logs to this.folder }
source share