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

Notification

Icon
Error

Disable green/red dots in left column, in classes that are not Test classes
PAYET Richard
#1 Posted : Wednesday, July 26, 2023 12:10:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/26/2023(UTC)
Posts: 1
Location: France

Thanks: 1 times
Hello,

Where can i configure the fact that i only want green/red dots to appear in left column of code, when this code is a Test class code ?
I would indeed sometimes like not to have them in the non testing code.

Thanks
Remco
#2 Posted : Wednesday, July 26, 2023 11:51:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi,

Thanks for posting.

The only way you can do this is by turning off the 'Instrument Output Assembly' setting for your test projects. In this way, code coverage will not be tracked for source files in these projects.

However, there is a trade-off to this. NCrunch's impact detection requires instrumentation to work correctly, so if you turn it off for your test project, you won't be able to use the 'Run impacted tests only' mode.

Generally, it's better to leave them on. The markers are as useful in test code as they are in production code.
1 user thanked Remco for this useful post.
PAYET Richard on 7/27/2023(UTC)
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.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download