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
5
votes
3 answers

What .Net coverage tools support "condition coverage"?

I am just starting with code coverage tools (primarily in C#). So far I have tested out NCrunch and DotCover. They both seem to do a good job with branch and function coverage, but I can't tell for sure if they're doing conditional coverage. For…
Joe
  • 776
  • 7
  • 20
5
votes
3 answers

Unit tests running in NCrunch but not in Resharper

I've got a set of unit tests that used to work very nicely in NCrunch and the Resharper 7 (in VS2012) test runner. I added SignalR and SignalR.Ninject through NuGet, and now my unit tests work in NCrunch, but no longer run in Resharper. The…
harriyott
  • 10,505
  • 10
  • 64
  • 103
5
votes
1 answer

Nunit 2.6 + Resharper 7 +NCrunch + visual studio 2010

I had a good time with Nunit 2.6 + ReSharper 7, but after I install Ncrunch, my Visual Studio 2010 just fell apart and I can't run Unit Tests inside the Unit Test Sessions. Error Message: The project xxxx has not been built Typical setup would…
Victor Tong
  • 977
  • 7
  • 13
5
votes
1 answer

Show all uncovered lines of code via ncrunch

Ncrunch shows lines of code, which are not covered by tests as black bubbles... Is there a possibility to show all lines of code which are not covered by tests? (Something like a dotCover code inspection report) Thanks in advance
Stephan
  • 1,639
  • 3
  • 15
  • 26
4
votes
2 answers

MSpec Json.NET deserialization test fails in ReSharper but passes in NCrunch

I have the following two unit tests: one using MSTest and one using Machine Specifications. As far as I can see they should behave identically. However, while the first one passes in both the NCrunch and ReSharper test runners, the second one fails…
Blisco
  • 601
  • 6
  • 14
4
votes
1 answer

NCrunch can't find relative file path

My app.config has a reference to a master.config. When NCrunch runs the tests it can't locate the master.config file as they run from a different directory; as such the test window always shows red and somewhat defeats the purpose of NCrunch. How…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
4
votes
2 answers

Concurrent/Continuous Testing for nodejs (ncrunch for nodejs)

I'm a big fan of the continuous testing setup offered by NCrunch in Visual Studio, and would love to have a similar setup with nodejs. When writing JavaScript in node I use Sublime Text 2 as my editor, with tests written using Mocha. I wondered if…
isNaN1247
  • 17,793
  • 12
  • 71
  • 118
4
votes
1 answer

Control number of cores for parallel execution

I have installed NCrunch which is a tool for (among other things) parallel tests execution. It provides two settings MaxNumberOfUsedCores and MaxNumberOfUsedThreads. The first setting looks intriguing. I don't remember any .NET means which would…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
4
votes
3 answers

NCrunch doesn't mark lines as covered by tests, but they are

I have just started using NCrunch and have some classes where the markers show there is no coverage, but I have tests which NCrunch is running successfully. When I edit the class (just add a space) the markers go green for a short while, then…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
3
votes
1 answer

Integrating NCrunch w/ TeamCity

Does anybody know of any resources/guides on getting NCrunch integrated w/ TeamCity? My company just started investing in more automation research and development; I am working on creating the automated testing suite using NCrunch while another…
Milo
  • 3,365
  • 9
  • 30
  • 44
3
votes
2 answers

Nunit, NCrunch and NSubstitute - Always 2 tests failing with UnexpectedArgumentMatcherException, which change (quasi) randomly

I have a text fixture which uses NUnit 3.4.1, NSubstitute 1.10.0 and NCrunch 2.23.0.2 There are at any point in time 2 faling tests in this fixture. Which test fail seems to vary every time I change something. Not all tests end up failing some time…
Sergi Papaseit
  • 15,999
  • 16
  • 67
  • 101
3
votes
1 answer

Get free port for WebApi OWIN self host when running tests in parallel

I'm using OWIN to Self-Host Web API while running my tests in parallel using NCrunch and I'm starting it in BeforeEach and stoping in AfterEach methods. Before each test I'm trying to get available free port, but usually 5-10 tests out of 85 fails…
Andrew
  • 412
  • 5
  • 16
3
votes
0 answers

Disable code coverage of auto-properties by NCrunch

Recently I've moved to Visual Studio 2015. I use NCrunch for checking code coverage, which I also upgraded. The main difference that I noticed was that NCrunch now also includes coverage auto-properties, which wasn't the case with Visual Studio…
3
votes
1 answer

How do I debug a failing test method in NCrunch

I am using NCrunch to run tests in my project and have a test method that is failing, which looks like this: Is there any way I can debug this method and if so how? In this StackOverFlow post Jon Skeet mentions you can "attach the debugger to…
NRKirby
  • 1,584
  • 4
  • 21
  • 38
3
votes
5 answers

Getting directory based the location of file C#

I'm trying to write a relative path from a file but the only relative paths I can get are from the running app file. This is causing problems as NCrunch runs its test from a different directory so its failing all my tests because it cant find the…
Alex Krupka
  • 710
  • 9
  • 20