(I just submitted a bug report via the extension for this)
NCrunch is no longer discovering the unit tests in my NUnit assembly. I'm not sure when it stopped working, so can't pin it to a specific change or software upgrade. This project was updated to be the new SDK-style csproj file somewhat recently, but other SDK-style projects are loading just fine from other solutions.
Any help in diagnosing and resolving this issue would be greatly appreciated.
~john
Nevermind :)
I found the issue. When we moved to SDK-based projects, the default build configuration for the main assembly and the test assembly were different (which we didn't see in VS, since it uses the configuration defined in the Configuration Manager). By explicitly setting the build configuration and platform in NCrunch, there was no longer an assembly mismatch and the tests were discovered.
I found the issue. When we moved to SDK-based projects, the default build configuration for the main assembly and the test assembly were different (which we didn't see in VS, since it uses the configuration defined in the Configuration Manager). By explicitly setting the build configuration and platform in NCrunch, there was no longer an assembly mismatch and the tests were discovered.
Remco NCrunch Developer
#14959
04 Sep 2020 23:37 UTC
I'm glad you found the problem here. It's a surprise to me that this was caused by mismatched configuration ... You must have some quite interesting build configuration in place for this project.
Post a reply
Log in to reply.