Setup Problems

Disable green/red dots in left column, in classes that are not Test classes

Started by PAYET Richard on 1,623 views

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
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.

Edited

This post has been deleted.

Post a reply

Log in to reply.