Modify the .nunit project created during the nunit step.

The issue: The NUnit step creates a temp *.nunit file, which defines the Config element and sets all the directories into the bin path. This is not desirable because the references of all tests are loaded into the same context, which causes MissingMethodExceptions to be thrown if different projects reference different assemblies.

The question: Is it possible to adjust the way that Teamcity generates the nunit file?

Environment: TeamCity Enterprise 9.1.4 (build 37293), the step is NUnit 3

 

Thank you for your help.

0
1 comment
Avatar
Nikolay Pianikov

Try adding a build configuration parameter nunit_use_project_file to False, for example:


0

Please sign in to leave a comment.