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

Notification

Icon
Error

Unignore all tests in a specified namespace?
GreenMoose
#1 Posted : Friday, December 21, 2012 10:44:36 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
I'm trying to use NCrunch but when I have un-ignored too many tests I cannot work with vstudio any longer due to freezes as soon as I start typing and NCrunch starts to reprocessing.

So I went ahead to try the manual run option and ignored all my tests to "start over".
But now I want to un-ignore "light weight" tests (non persistence tests) in my domain namespace, but I can't seem to be able to do that.

when I select "Unignore" in UI for 1 test fixture and check the Tests.ncrunchproject, I get tuns of entries for the <IgnoredTests> but cannot find any e.g. <UnignoredTests>, which I would want to use for un-ignoring e.g. tests in Tests\DomainTests\..*.

Is this possible somehow?

Thanks.

(working with SSD for solution and RAMDISK dedicated to NCrunch, 8 core (3 cores for NCrunch) and 16GB RAM, so I'm quite surprised I actually have perf. issues with NCrunch enabled. If I disable NCrunch working in vstudio goes smoothly again.)
Remco
#2 Posted : Friday, December 21, 2012 11:19:06 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!

Usually when this sort of symptom is reported (i.e. system overloaded, not responding, etc), the underlying problem is in the nature of the tests that are being executed. NCrunch exerts very tight control over processing resources used during test execution, although it cannot control external services/applications that are being used by integration tests.

For example, you may have a database system running on your workstation that is being called by your tests when they execute. When a large request is made of the database, it increases its resource consumption. NCrunch cannot restrict the resource consumption of processes outside its control, so the database consumes more than its fair share and brings the workstation to its knees.

There are many ways of solving an issue like this, although the best approach will always depend upon your development environment and test suite. From an NCrunch configuration perspective, I would recommend that you try marking heavy integration tests with the ExclusivelyUsesAttribute to prevent them from running in parallel with each other and overloading your system. As a long term goal, it's often good to try and focus on reducing the size of datasets used for integration tests so that they require less resources and execute quicker - though I realise that in reality this isn't always possible or feasible to achieve.

The 'ignored test' system for NCrunch is inclusive rather than exclusive, so the only way for the system to configure itself for the scenario you've described is by creating many ignoredtests entries in the configuration file. If your tests can still run individually in NCrunch without functional problems (i.e. you are only ignoring them to reduce resource consumption), I would have to recommend other ways to manage this situation. You may find it more practical to categorise your tests, then configure the engine modes to avoid running heavy tests automatically. This means you can still run the tests manually without losing code coverage information for them (which is immediately cleared when the test is ignored).


Cheers,

Remco
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.044 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download