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

Notification

Icon
Error

"Analysis failure" for dotnet standard lib with no tests in it
koraybalci
#1 Posted : Wednesday, March 6, 2019 5:42:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/6/2019(UTC)
Posts: 5
Location: Australia

Thanks: 3 times
Hi there,

We are using nCrunch version 3.22.0.1 at work and started migrating our codebase to dotnet core/standard recently.

We have one particular library, which relies on NUnit 3.11.0 and includes some internal helper functionality to support our actual test projects. It doesn't contain any tests itself (hence it is dotnet standard). Unfortunately, we link this project in all test projects (some in net472, some in dotenet core 2.2 at this stage).

nCrunch reports build failure for that particular lib and stops processing rest of the test assemblies, which makes nCrunch unusable at this stage.

I am curious if this issue has been addressed already, in a newer version perhaps? If so, that'll be a good reason to upgrade :)

Thanks in advance.
Remco
#2 Posted : Wednesday, March 6, 2019 6:19:26 AM(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)
Hi, thanks for sharing this issue.

To fix this problem, all you should need to do is disable the NUnit adapter in your NCrunch project-level configuration for the netstandard project. In this way NCrunch won't try to discover tests from the project.

This is in the assumption that the error you're receiving is NCrunch complaining about a 'netstandard test project'.
1 user thanked Remco for this useful post.
koraybalci on 3/6/2019(UTC)
koraybalci
#3 Posted : Wednesday, March 6, 2019 9:49:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/6/2019(UTC)
Posts: 5
Location: Australia

Thanks: 3 times
Perfect, it just worked. Thanks a lot!
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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download