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

Notification

Icon
Error

Tests not showing on 4.7.2 test projects
playtime222
#1 Posted : Friday, April 19, 2024 10:21:03 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/5/2019(UTC)
Posts: 15
Location: Netherlands

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
The solution contains 61 projects with the following characteristics:

1. .netstandard2 projects with test projects multi-targeted to .net6 and .net 472.
2. .net 6 projects with .net6 test projects
3. .net 472 WPF projects with .net 472 projects.

No tests show for any of the .net472 test projects e.g. 1 and 3 from the above. All the .NET 6 tests run fine.

There are some warnings regarding duplicate test names because of the use of NUnit TestName (I know, I know...) but they are simple omitted from the .NET tests and not all the 472 tests have this warning anyway.

I suspect there is a simple setting somewhere but I cannot figure it out.

Any ideas?
Remco
#2 Posted : Friday, April 19, 2024 10:59:38 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

Can you confirm that you can see the .net 472 test project in the Tests Window and that it's showing having built successfully?

Check the NCrunch configuration between the projects to make sure you don't have any differences in settings between net472 and net6. There are settings that can cause this but they should be easy to spot when comparing the projects.

I would suggest trying to build a sample solution with the exact same structure (maybe even start from your existing solution, then cut bits out until it's as simple as you can make it). This would help you to deduct the source of the problem.
playtime222
#3 Posted : Friday, April 19, 2024 11:06:44 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/5/2019(UTC)
Posts: 15
Location: Netherlands

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)

Hey Remco. My first issue that doesn't involve PostSharp ;)

For your first point, yes, they all show as successfully built.

Point 2 - I will check but this is the first run with default settings (I killed off all the files NCrunch adds behind the scenes and started again from scratch).

Remco
#4 Posted : Friday, April 19, 2024 11:18:04 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks. I definitely recommend trying to whittle this down to simplify it. We definitely should work in this situation and we have many tests that cover this kind of scenario. Perhaps start by making sure you can build a .net 472 test project that NCrunch will run tests from.
playtime222
#5 Posted : Tuesday, April 23, 2024 10:13:04 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/5/2019(UTC)
Posts: 15
Location: Netherlands

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Didn't see the last reply.

It does build all the projects, it just does not enumerate/display/run the tests on 472 builds.

I'm persevering with just the build functionality and using another test runner for the piece of work I am doing right now but I expect to get to more investigation on Friday.
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.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download