NCrunch Forum
»
General Support
»
Build/Test Issues
»
Tests not showing on 4.7.2 test projects
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?
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,143
Thanks: 959 times Was thanked: 1290 time(s) in 1196 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.
|
|
|
|
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).
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,143
Thanks: 959 times Was thanked: 1290 time(s) in 1196 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.
|
|
|
|
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.
|
|
|
|
NCrunch Forum
»
General Support
»
Build/Test Issues
»
Tests not showing on 4.7.2 test projects
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.NETThis page was generated in 0.038 seconds.