NUnit runner
I have problems running a NUnit Step in a build configuration. This build configuration has a dependency on another Build configuration and the problem is when the step is trying to parse a parameter from the the configuration it depends on
Have a parameter in the buidl configuration
Optimera.Plattform.HttpTests => %dep.OptimeraPlattform_OptimeraPlatform_2.teamcity.build.default.checkoutDir%\Optimera.Platform.Services.Tests\bin\Test\Optimera.Platform.HttpTests.dll
This parameter is used as in the the NUnit step in the parameter
Run tests from: %Optimera.Plattform.HttpTests%
Got the following error (extract from the log)
[13:08:15]Step 2/2: Test deployed services (NUnit) (4s)
[13:08:15][Step 2/2] Starting: D:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[13:08:15][Step 2/2] in directory: D:\TeamCity\buildAgent\work\8bea24bbc2b35ba0
[13:08:19][Step 2/2] 2014-04-22 13:08:19,271 [7280] WARN JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Failed to parse arguments
[13:08:19][Step 2/2] No assemblies were found.
[13:08:19][Step 2/2] No assemblies were found.
[13:08:19][Step 2/2] No assemblies were found.
[13:08:19][Step 2/2] Process exited with code -1
[13:08:19][Step 2/2] Step Test deployed services (NUnit) failed
When setting the NUnit step parameter with the expanded value
Run tests from: D:\TeamCity\buildAgent\work\578657f15c2f69e6\Optimera.Platform.Services.Tests\bin\Test\Optimera.Platform.HttpTests.dll
everything works ok.
Looks like theis has something to do when using parameters from a dependent build configuration
Please sign in to leave a comment.
Am I right in understanding, that you are trying to run NUnit tests against some assembly, built by the build dependency of your build configuration?
If so, the better way is to publish this assembly as a Build Artifact by specifying artifact path in 1st configuration:
Optimera.Platform.Services.Tests\bin\Test\Optimera.Platform.HttpTests.dll
Then add Artifact Dependency to the dependent build and supply only the name 'Optimera.Platform.HttpTests.dll' to the 'Run tests from' parameter of NUnit step.
Thanks for the tip.
This worked fine.