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
3
votes
1 answer

How to use approval-tests WinMergeReporter w/ ncrunch

I've been using approval-tests for a while with the WinMergeReporter and it is working well with the standard NUnit runner executable. I am trying out NCrunch and the approval.Verify fails (as expected) for a new approval. However, WinMerge does not…
James Bradt
  • 564
  • 5
  • 11
2
votes
1 answer

Visual Studio MVC 5 web project - should I include "node_modules" folder in project?

I use NPM to maintain front-end dependencies in my MVC 5 web project. One of the key uses I have for NPM is to get Typescript definitions for things. The project is organised like this: MySolution | |-- MySolution.Web | |-- Controllers …
Laurence Frost
  • 2,759
  • 3
  • 28
  • 45
2
votes
0 answers

NCrunch throws System.IO.DirectoryNotFoundException when doing File.ReadAllText

I am having an issue with NCrunch where I am getting the following exception when I test a method that is trying to access the file system. System.IO.DirectoryNotFoundException Could not find a part of the path…
Shawn
  • 2,355
  • 14
  • 48
  • 98
2
votes
1 answer

Why does my Rx.NET observable appear to produce its entire sequence twice?

I have a randomly failing unit test which I'm at a loss to explain. This involves an observable sequence using Rx.NET and an extension method that I made to transform the sequence. First, let me show how the test…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
2
votes
1 answer

NCrunch Unit testing code coverage

In my Visual Studio 2013 projects I am getting uncovered unit test warning from NCrunch where those functions have strong dependency to other entities. I would like to learn is there any natural way to clear out those warnings. Lets assume I have a…
Teoman shipahi
  • 47,454
  • 15
  • 134
  • 158
2
votes
2 answers

NCrunch and PostSharp Logging clash

I have been happily using NCrunch and PostSharp (param validation) in a project for many months now I just added PostSharp Logging via log4net to my project and now NCrunch is complaining about the .psproj files that were added: My.App.psproj (0):…
Shevek
  • 3,869
  • 5
  • 43
  • 63
2
votes
1 answer

Running NUnit tests multiple times

I have a suite of NUnit tests, some of which fail intermittently, probably because of timing problems. I'd like to find these flaky unit tests. Is there a way to repeat each test multiple times without having to put a Repeat() attribute on each…
Phillip Ngan
  • 15,482
  • 8
  • 63
  • 79
2
votes
1 answer

Can't access a partially applied function with in a class

I'm extremely new to F# and was playing around with the stack calculator on the F# for fun and profit (excellent site). I was trying to figure out how to have a test project and class. I have a test class with this method: open NUnit.Framework open…
Greg McGuffey
  • 3,116
  • 3
  • 38
  • 58
2
votes
1 answer

Excluding private methods from unit tests

Is there a way to exclude private methods from the tests, such that the black bar is not generated for private methods, and their code coverage doesn't affect the code coverage of the class under test?
kasperhj
  • 10,052
  • 21
  • 63
  • 106
2
votes
0 answers

Is there any way to tell ncrunch to use the same configuration for multiple solutions?

Relatively simple question, I think. We use TFS as source control, with a feature-branching strategy. Every time we create a new branch, NCrunch pops up to tell us to configure it. Since the solution is really the same one, I'd like to have some…
Kyle W
  • 3,702
  • 20
  • 32
2
votes
1 answer

Getting NCRUNCH to honor Output Path from Project Settings?

I have downloaded a trial version of NCrunch for Visual Studio 2013 and am trying to get it working with my solution that builds fine and has working MS Unit Tests. I am able to get NCrunch to build all the projects (a mixture of C# and C++) but…
Dave
  • 8,095
  • 14
  • 56
  • 99
2
votes
1 answer

NCrunch Won't Build After Deleting Extra Solution Configurations

We had a solution with several additional solution configurations beyond the typical Debug and Release, and are going back to simply a Debug and Release. A few projects did not have a Debug build, or did not have a Release build. I have: Re-added…
nklhead
  • 336
  • 3
  • 5
2
votes
1 answer

Making NCrunch run unit test with [ignore] attribute

I have a unit test that is marked with the [ignore] attribute, and therefore NCrunch does not run it. However, it would like to be able to run it manually. With Resharper it is possible to manually run the test eventhough the [ignore] attribute is…
Casper Thule Hansen
  • 1,510
  • 2
  • 19
  • 36
2
votes
2 answers

XmlSerializer behaves differently in MSTest runner and NCrunch

A colleague of mine encountered a situation where the XMLSerializer behaves differently when run via MSTest Runner or via NCrunch. When running test through N-Crunch the output contains xmlns:xsd="http://www.w3.org/2001/XMLSchema"…
tymtam
  • 31,798
  • 8
  • 86
  • 126
2
votes
1 answer

Ncrunch all test pass first run, but fails after code change and when run all button is pressed

I'm running ncrunch, in a new MVC 4 solution in VS2012 using nunit and ninject. When I first open the solution all 50 or so test run and pass successfully. After I make any code change (even just a added empty space) ncrunch reports that most of my…
Cliff Mayson
  • 483
  • 5
  • 15