How to stop subsuquent DLLs from being tests with NUnit 3 --stoponerror
I have a build step to run my long running acceptance tests using NUnit.
My tests are split across multiple DLLs. When i apply the --stoponerror parameter, the first DLL will stop but the second and third DLLs continues to be tested. The build has already failed, so how do i stop the runner completely?
Please sign in to leave a comment.
Hello Shaed,
TeamCity just calls nunti3-console.exe here. What happens when you try to run your tests in a command line with option --stoponerror? Do they stop completely or only first DLL is skipped and all another run?
If the behavior in the console is the same I can suggest you try to use build Failure Conditions: Add "Fail build on specific text in build log" condition and check "Stop build" checkbox. The more details in our documentation.