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

Notification

Icon
Error

Disable NCrunch for individual projects in a solution
Groky
#1 Posted : Friday, November 25, 2011 3:02:43 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/25/2011(UTC)
Posts: 3

Hello,

First of all I'd like to say how much I *love* this product. Good work!

Now my question - is it possible to disable NCrunch for individual projects in a solution? Some of my projects can't be tested and I'd like to ignore them to speed up testing and remove the code coverage dots etc. I couldn't see how to do this in the NCrunch configuration window.

Thank you.
Remco
#2 Posted : Friday, November 25, 2011 7:19:16 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 Groky,

You can disable all the tests in the project by ignoring it in the tests window (just right click and choose the ignore option). However, if the project has build issues, the option to exclude it from your build is still a work in progress (though this feature isn't far away!).


Cheers,

Remco
Groky
#3 Posted : Friday, November 25, 2011 10:00:40 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/25/2011(UTC)
Posts: 3

Hmm, I tried that but the black circles are still appearing in the files in that project. Oh well, it's not that important. Thanks anyway!
Remco
#4 Posted : Friday, November 25, 2011 11:09:48 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)
The black circles will appear for any project that's built - regardless of whether or not it's covered by tests, though you can get rid of them if your turn off instrumentation on the project that you don't care about.

Thanks for posting. I'm glad you like the tool :)
burlistic
#5 Posted : Tuesday, June 10, 2014 6:56:20 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 2
Location: United Kingdom

Thanks: 1 times
Did this feature get released?

Have a trouble some project that contains no unit tests at present. Would rather exclude it that invest the time is fixing it up to build in NCrunch. Struggling to see how this can be done.
Remco
#6 Posted : Tuesday, June 10, 2014 9:14:56 AM(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)
Yes! It did. Try the Ignore This Component Completely project-level configuration setting.
1 user thanked Remco for this useful post.
burlistic on 6/11/2014(UTC)
burlistic
#7 Posted : Wednesday, June 11, 2014 3:51:16 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 2
Location: United Kingdom

Thanks: 1 times
Many thanks..

I was looking for an option in the UI. Didn't think of looking at the .ncrunchproject file.

Problem solved for now.
Remco
#8 Posted : Wednesday, June 11, 2014 4:07:24 AM(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)
I generally would recommend avoiding changing the .ncrunchproject file manually, as the settings in this file are driven by NCrunch's configuration window. If you can find the project under the NCrunch Configuration Window, it should be very easy to change the setting from there. The Configuration Window will also grey out projects that have been ignored to make them easier to spot.
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.058 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download