Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
"Rerun all tests" doesn't seem to be rerunning all tests
[quote=rlundy;12429] I wonder if you might consider removing the "all" from that Reset description, since it doesn't always rerun "all" the tests?[/quote] That's a very good point. I'll see what I can do about this.
04 Jul 2018 11:44 UTC
-
ASP.NET Core 2.1 integration tests
[quote=austsw;12426] Has there been any movement with regard to this issue?[/quote] Yes! There has been movement, but no usable results yet. It's looking like this will require code changes on both sides (NCrunch and the package). I've submitted a PR to MS and we're discussing it with them di…
03 Jul 2018 23:55 UTC
-
How to determine what is causing NCrunch to die?
Hi, thanks for sharing this issue. There's a broad range of things that can cause this error, for example: - OutOfMemoryExceptions at run time - StackOverflowExceptions in referenced code - Unmanaged exceptions - Accidental termination (i.e. Process.Kill) - Hardware or platform instability…
03 Jul 2018 00:05 UTC
-
Ensure that restore has run and that you have included 'netcoreapp2.0'
[quote=IanBowyer] I was using an old version so I decided to try the 30 day trial of the latest version, which worked ok.[/quote] Ahh, that makes sense. .NET Core has been moving very quickly, so I definitely recommend keeping your NCrunch updated if you're working on this platform. Thanks for…
02 Jul 2018 09:32 UTC
-
"Rerun all tests" doesn't seem to be rerunning all tests
Hi, thanks for posting! The reset button completely turns off the engine and turns it back on again. It's basically the same as using the Disable then Enable menu options. Most of the time this button is only necessary if you need to resolve a problem that's appeared in the engine, like a de-sy…
01 Jul 2018 23:22 UTC
-
keys stop working after failed debug session
[quote=cray17;12418]I understand. It's weird that it does it everytime I debug a test using NCrunch, but not when I debug using regular test explorer. That's what led me to believe it was an ncrunch issue. I'm running 15.7.3. Oh well...[/quote] There are differences in behaviour when using NCrunc…
29 Jun 2018 23:59 UTC
-
keys stop working after failed debug session
Hi Chris, I'm sorry to say that this is not likely to be NCrunch's fault. NCrunch's integration with the debugger is a few minimal lines of boilerplate code, where we tell it to attach to a process, or to detach at the end of a test run. The debugger is an extremely complex beast and I've obs…
28 Jun 2018 23:09 UTC
-
XUnit - CollectionBehaviorAttribute to disable parallelism - not used?
Hi Kieren, Thanks for posting! Yes, this is by design. The dimensions of the Xunit parallelization control are quite different to NCrunch's own implementation, so there is no way for NCrunch to make use of them. To constraint parallel execution under NCrunch you'll need to use [url=https://w…
28 Jun 2018 11:24 UTC
-
Ensure test resource is initialized with parallel testing?
ExclusivelyUsesAttribute can be used for this. Its scope is the machine (not the whole grid), so using this attribute would solve your problem. Though of course this would then prevent the tests from being run in parallel at all. I would actually solve this in your test code by using a system-w…
26 Jun 2018 12:49 UTC
-
Fail tests when the fixture dispose throws
Hi, thanks for sharing this problem. You've managed to find a hole in NCrunch's handling here. Xunit reports this problem using a specialised message, and we haven't been listening for it. The result is that NCrunch ignores the exception and pretends that it doesn't exist. A fix for this w…
26 Jun 2018 09:24 UTC
-
The project currently contains references to more than one version of <AssemblyName>
Hi Dan, You're welcome to request such a feature on [url=https://ncrunch.uservoice.com]uservoice[/url] if you like.
26 Jun 2018 09:11 UTC
-
Console tool, custom environment variables with connection string not picked up
You've won the argument on specifying additional config settings via the command line. We're trying to work out how to proceed with this at the moment. 1) NCrunch identifies the engine modes internally using a combination of their name and the scope they're applied in (i.e. global/solution), so …
26 Jun 2018 00:35 UTC
-
NCrunch build breaks when building with SourceLink
I just wanted to let you guys know that we have a change pending for the upcoming 3.18 release that will set this property automatically, so that changes to project files won't be necessary.
26 Jun 2018 00:20 UTC
-
Console tool and impacted tests, failed tests becomes ignored?
Sorry, I've been meaning to come back to you on this issue. We've seen it happen inside our own build system recently too. It looks like defective behaviour. Somehow it's possible for the tool to 'miss' a test during a run. I'm not sure yet why this is happening. It's proving hard to track …
26 Jun 2018 00:19 UTC
-
The project currently contains references to more than one version of <AssemblyName>
Hi Dan, I may be able to offer a solution here that doesn't involve introducing hacks to your project files, but you probably won't like it. To improve performance, NCrunch short-circuits your build system to only build projects that have changed. This is different from the standard VS/MSBuil…
26 Jun 2018 00:15 UTC
-
Console tool, custom environment variables with connection string not picked up
[quote=GreenMoose;12389] But since there are variables I cannot declare via console parameters, I must supply them via "/c configFile", but then the team settings override it. So basically every value that I cannot specify via "-setting val", I must ensure developers are not adding in solution con…
24 Jun 2018 23:15 UTC
-
Closing brace reported as not covered by tests
Hi, thanks for posting! Looking at this code, it does actually make sense to me that the closing braces wouldn't be marked as covered. This is because they actually are not physically covered. You'll likely notice that if you place a breakpoint on any of these lines, you won't be able to break …
24 Jun 2018 23:04 UTC
-
NCrunch Console - Avoid Compilation
[quote=mizzm001;12387] We have a case where we don't need code coverage. Could we do without compilation?[/quote] Conceptually, it then becomes possible. Unfortunately, in practice, there's no way that the console tool can work without performing the builds itself. This is because the console …
22 Jun 2018 12:29 UTC
-
NCrunch Console - Avoid Compilation
Hi, thanks for posting. Unfortunately not. NCrunch's feature-set requires it to be in control of the build system. It isn't possible to track code coverage data without instrumenting assemblies, which requires post-processing. This means that when using the console tool in your CI system, you …
22 Jun 2018 08:23 UTC
-
NCrunch.AppContainer.exe flagged as Trojan:Win32/Bluteal.B!rfn
Hi, thanks for sharing this. You have my assurance that NCrunch does not contain a virus. This is a false positive. If you like, you can check the results of online services that are able to push the file through a range of different scanners. Virus Total has quite a good one that allows you t…
21 Jun 2018 23:45 UTC