Questions tagged [ncrunch]

NCrunch is a continuous testing tool for Visual Studio .NET. It intelligently takes responsibility for running automated tests so that you don't have to, and it provides a huge amount of useful information about your tests (such as code coverage and performance metrics) inline in your IDE while you work.

NCrunch works with MSTest, NUnit, and other popular automated test frameworks.

It also provides the following options for how it runs automated tests (among many others):

  • Whether to run tests automatically or manually.
  • How to divide CPU cores between Visual Studio and NCrunch.
  • The maximum number of processing threads to use at once (> 1 for parallel test execution).
  • Optimization for fastest test execution or maximum memory efficiency.

See the NCrunch overview and documentation to learn more about it.

90 questions
98
votes
7 answers

Free NCrunch alternative

Since NCrunch has left the free market, I was looking for a similar tool for code coverage marking, and continous testing like NCrunch edit: I'm using VS2012 update: I've been using ContinuousTest for a while now, it's OK, but I think it lacks…
Pacane
  • 20,273
  • 18
  • 60
  • 97
24
votes
4 answers

Using NCrunch with Resharper

In a day to day usage, how well does NCrunch play with ReSharper? Can they be run side by side without any (usablilty) glitches? Is performance still OK? Anything to watch out for? Does the ReSharper testrunner still work?
bitbonk
  • 48,890
  • 37
  • 186
  • 278
15
votes
1 answer

Equivalent of NCrunch for Java in Eclipse

I'm looking for a tool that does continuous testing while I'm writing code (such as NCrunch for Visual Studio) for Java in Eclipse. Is there something like that available for free? Ideally, it would test continuously, but also give me a feedback in…
Pacane
  • 20,273
  • 18
  • 60
  • 97
14
votes
1 answer

Exclude tests from a certain category

"Bottom" line: How do you set up NCrunch to exclude all tests in a certain category, e.g. "LongRunning"? Stack Overflow search provided zero results, and the relevant NCrunch wiki page merely informs me that "NUnit's Category attribute is just as…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
11
votes
1 answer

Mocking Generic Method with NSubstitute

I have an interface with a number of generic methods. These methods perform operations based on the type of data that is passed in. How do I mock this with NSubstitute? At the moment, I had to resort to using a concrete class instead of a mock since…
ritcoder
  • 3,274
  • 10
  • 42
  • 62
11
votes
4 answers

Ninject ToFactory works in Resharper unit tests, but not NCrunch

I'm using Ninject.Extensions.Factory with Ninject 3 to create a factory, which creates different types of IFoo based on the string provided to the factory. I've got a passing unit test, but oddly, only in the Resharper test runner. In the NCrunch…
harriyott
  • 10,505
  • 10
  • 64
  • 103
9
votes
1 answer

How is the graph on the NCrunch Risk/Progress window calculated?

Can anyone shed any light on what the curve on the chart means, what the shaded area means, and what the axes are?
Ashfaq Hussain
  • 331
  • 2
  • 11
9
votes
3 answers

How can I run UI tests with FlaUI on a remote machine whilst not RDP'd into it?

We have some UI tests that use FlaUI to automate interaction with the windows UI. When we run these tests on the build server, they fail to interact with the UI unless someone is connected via RDP. The error we get from the tests is just a Could not…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
9
votes
2 answers

Selenium driver location search path

I'm trying to set up selenium tests in nCrunch which outputs the tests to its own temp folder. I'm getting the following error when I create the driver (new PhantomJSDriver()): OpenQA.Selenium.DriverServiceNotFoundException : The PhantomJS.exe file…
undefined
  • 33,537
  • 22
  • 129
  • 198
7
votes
2 answers

Unit testing with Roslyn.Services.Workspace results in a SecurityException while working at x86 target

I'm working on set of constants for my project, and I'd like to use roslyn to verify some of them in source code level. To achieve this, I'm loading entire solution using following snippet into AppDomain with IsFullyTrusted == true and IsHomogenous…
Akim
  • 8,469
  • 2
  • 31
  • 49
6
votes
1 answer

Run tests affected by code changes first in TeamCity

Using TeamCity, we want to run tests which are affected by code changes first. NCrunch (http://ncrunch.net) and Mighty Moose (http://continuoustests.com/) provide solutions for that on a local development machine. Is there some solution for…
Robert
  • 1,466
  • 10
  • 25
6
votes
2 answers

Visual Studio regularly throwing exception

Visual Studio 2015 is regularly becoming odd. Keys typed are appearing in semi-random orders, I'll sometimes have to press keys twice or more. I think this seems to be around key words, rather than variable names or literals. After about five…
6
votes
1 answer

How can I see the console output when running tests with NCrunch?

I don't know if it's implemented but there is an option for NCrunch output in the Output window. TestDriven.NET is already doing this while you are running the tests and I realized it was useful when trying out things quickly. Is there a way to…
Ufuk Hacıoğulları
  • 37,978
  • 12
  • 114
  • 156
6
votes
1 answer

How do I set up NCrunch to run nspec tests

I'm struggling to set up NCrunch to run my nspec tests automatically. On the ncrunch forums it says this functionality has not been implemented yet, but then MattFlo says he prefers using NCrunch, so I'm pretty sure it can be made to work. Help…
richardwhatever
  • 4,564
  • 5
  • 23
  • 26
5
votes
0 answers

Xunit Theory with some InlineData ignored

I'm trying to run some tests to check my postfix bitwise algorithm with XUnit. It seemed like a [Theory] with [InlineData] would work perfectly for this, but it does not appear to be working like I was hoping. [Theory] // a && b …
Andy Clark
  • 516
  • 1
  • 4
  • 21
1
2 3 4 5 6