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
0
votes
0 answers

NCrunch errors after update to latest version 3.20

NCrunch (which is wonderful) has starting throwing errors since I updated it to the latest version this morning. So everything was working perfectly prior to the upgrade (which it prompted me to do). Since updating and restarting the machine I am…
julian guppy
  • 411
  • 1
  • 4
  • 21
0
votes
0 answers

How to make .nuproj projects work with NCrunch

I have a solution with two nuproj projects, say A and B. Both projects contain only props and targets files (so NO assemblies or PDB files) and they both generate NuGet packages. Now, A has no reference and it is an internal dependency, whereas B…
Fabio Strocco
  • 300
  • 4
  • 14
0
votes
0 answers

FluentAssertions throws ArgumentOutOfRangeException when assertion fails (possibly NCrunch related)

I'm using FluentAssertions 5.3.0 run under NCrunch 3.14.0.1. When a test fails, I often seen this error as FluentAssertions tries to generate a report message... System.ArgumentOutOfRangeException: startIndex cannot be larger than length of…
NeilMacMullen
  • 3,339
  • 2
  • 20
  • 22
0
votes
2 answers

Can I Use NUnit & NCrunch to Test Multiple Build Configurations with Preprocessor Directives?

I am writing a wrapper library for the API to some software that has multiple versions of the API, and lots of shared calls between multiple platforms that are developed concurrently but separately. Over time they have even been merging the…
0
votes
1 answer

NCrunch TestProjects with .net standard / core not working

I use ncrunch for my testing environment in vs2017. In some projects i get a weired exception that projects could not be resolved To reproduce i do the following steps: Create a new .net standard 1.4 project create a .net core xunit test project In…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
0
votes
1 answer

Why do I get a NullReferenceException in this MSpec test?

So I have these nuget packages installed: Culminating in these references: I use NCrunch. I have this spec: namespace GlobPatternMatching.Tests { using FluentAssertions; using Machine.Fakes; using Machine.Specifications; …
Callum Linington
  • 14,213
  • 12
  • 75
  • 154
0
votes
1 answer

NCrunch doesn't recognise environment variable

I've set my NCrunch cache storage path to %TEMP%\NCrunchCache. However, I get the following error: NCrunch was unable to access the directory 'C:\src\solutionFolder\%TEMP%\NCrunchCache' as specified in the configuration for this solution. Cache…
David Osborne
  • 6,436
  • 1
  • 21
  • 35
0
votes
2 answers

SpecFlow and NCrunch: multi-threaded error while executing in single thread

We updated our solution from SpecFlow1.9 to 2.0 and NUnit2.6.4 to 3.2.1. After adapting some attributes and project settings, all tests run fine in NUnit. However, when the SpecFlow tests are executed with NCrunch, we get a…
Erik Stroeken
  • 519
  • 4
  • 16
0
votes
1 answer

Configuration settings make tests unstable with NCrunch

I have a problem with tests becoming unstable under NCrunch. It looks like it has to do with some shadow copying issue. My test goes something like this class SaveViewSettings : ISaveSettings { public void SaveSettings() { …
mkoertgen
  • 898
  • 6
  • 14
0
votes
2 answers

NCrunch always disabled whenever I open a solution

I'm currently using NCrunch 1.48.0.5 in Visual Studio 2010. Every time I open a solution I find that NCrunch is disabled. How can I open a solution and have NCrunch enabled by default?
Ben Smith
  • 19,589
  • 6
  • 65
  • 93
0
votes
1 answer

Code Coveragein Separate Solutions

(I posted this question on NCrunch forum but I've not received a response in 3 days.) I just downloaded, installed, and enabled NCrunch. I'm using: VS 2012, Gallio, MbUnit. I've a main solution with several projects. At this point I want to test…
CoolBreeze
  • 381
  • 4
  • 14
0
votes
1 answer

NCRUNCH code coverage markers are all white after changing output path of project under test

Recently, I changed the output path of my project (a class library) from the default (../bin/debug) to: $(OURDIRECTORY_BUILD)\Debug\ where OURDIRECTORY is an environmental (System) variable). I also changed the UnitTest project (that was in the same…
Dave
  • 8,095
  • 14
  • 56
  • 99
0
votes
1 answer

Are these Singleton Unit Tests actually working as expected?

I have a bootstrapper object that I'm trying to test (using xunit). The tests appear to pass, but I'm seeing some weird things in one of the test runners I use (ncrunch). I use both ncrunch and the resharper xunit runner. My idea was to take the…
Josh
  • 776
  • 6
  • 20
-1
votes
1 answer

Test runners inconsistent with HttpClient and Mocking HttpMessageRequest XUnit

So let me start by saying I've seen all the threads over the wars between creating a wrapper vs mocking the HttpMethodRequest. In the past, I've done the wrapper method with great success, but I thought I'd go down the path of Mocking the…
KellyTheDev
  • 891
  • 2
  • 12
  • 31
-1
votes
1 answer

NCrunch test fails with FileNotFoundException

My test requires an NHibernate configuration file. The file is added through NCrunch configuration: But the test still fails with: System.IO.FileNotFoundException: NHibernate configuration file not found. File name:…
Alex M
  • 2,410
  • 1
  • 24
  • 37
1 2 3 4 5
6