When starting tests via JetBrains.BuildServer.NUnitLauncher.exe what process runs the test?

Hi,

I run a series of NUnit tests using the JetBrains.BuildServer.NUnitLauncher.exe, called directly from a finalbuilder script, with the TeamCity build configuration running finalbuilder from the command line. The arguments to the NUnit launcher are

v2.0 x86 NUnit-2.4.6 %ASSEMBLIES_TO_TEST%

and everything works fine.

However, I now wish to alter the behaviour of one of the test's dependent assemblies by passing in some configuration properties. Normally I would do this by creating a file UI.exe.config in the same directory as UI.exe, where UI.exe is the program executable. There's no special code in our app to read the config file, I'm just relying on .NET's built-in config file functionality (http://msdn.microsoft.com/en-us/library/1fk1t1t0.aspx).

Configuring the dependant assembly this way works fine in the case of UI.exe, or any other application we use that in turn uses our assembly (for example, MS Excel). What I'd like to do is configure the assembly in the same way when running under JetBrains.BuildServer.NUnitLauncher.exe. I've tried creating JetBrains.BuildServer.NUnitLauncher.exe.config, but this does not configure the assembly, with the tests not displaying any altered behaviour. Can you tell me which executable I should create a config file for in order to configure the dependent assembly's behaviour?

Thanks for any help you are able to provide,

Will
--

1 comment
Comment actions Permalink

TeamCity NUnit launcher may start additional processes to enforce unit tests running under right platform (e.g. .NET 2.0, x86).
All test assemblies are loaded to the App domain with regart to .config file.
So if you have Assembly.dll to run tests on you may create Assembly.dll.config to put configuration there.

0

Please sign in to leave a comment.