Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

No longer discovering NUnit tests
johnmwright
#1 Posted : Friday, September 4, 2020 2:25:15 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/27/2011(UTC)
Posts: 45
Location: Chicago, IL

Thanks: 3 times
Was thanked: 7 time(s) in 6 post(s)
(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
johnmwright
#2 Posted : Friday, September 4, 2020 2:40:57 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/27/2011(UTC)
Posts: 45
Location: Chicago, IL

Thanks: 3 times
Was thanked: 7 time(s) in 6 post(s)
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.

Remco
#3 Posted : Friday, September 4, 2020 11:37:38 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download