Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
How to get 100% code coverage with a throw inside cath?
Hi, thanks for posting. Structurally, what you are attempting to do is impossible without code coverage suppression (i.e. ncrunch comments, ExcludeFromCoverageAttribute, etc). This is because a throw statement physically causes the runtime to return early from a method, leaving any code after …
21 Apr 2020 10:30 UTC
-
The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized
Hi, thanks for sharing this problem. I'll take a look at the sample solution and will get back to you. Can you confirm that you're running the latest version of NCrunch? (v4.3).
21 Apr 2020 08:38 UTC
-
NCrunch does not seem to support editorconfig inheritance
Hi, thanks for posting. I'm not particularly familiar with the mechanics of these files or their purpose, but is it possible that the global editorconfig file simply needs to be present inside the NCrunch workspace? If so, try adding it to the 'Additional files to include' in your NCrunch soluti…
21 Apr 2020 08:28 UTC
-
NCrunch Stuck/Hangs With 'Running (First time run)' For Most Tests In Project
Thanks for sharing these extra details. I've reviewed the code involved and cross checked this with the stack trace you've provided. It looks to me like your compiled test project assembly has a binary reference to 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture…
21 Apr 2020 01:26 UTC
-
With optimized instrumentation generic MSpec behavior fails with "This test was not executed..."
Thanks for the sample. That did it for me (red across the board). I'll let you know as soon as we have a fix available.
20 Apr 2020 23:56 UTC
-
FrameworkReference Build Error on a netcoreapp2.1 Target Build
Thanks for sending these through. I'll take a look and will get back to you as soon as I have more information.
20 Apr 2020 23:53 UTC
-
NCrunch Stuck/Hangs With 'Running (First time run)' For Most Tests In Project
[quote=nko12;14632] Is it possible NCrunch is trying to pull it in itself? [/quote] This is definitely a possibility. It's generally assumed that your code would be relying on this assembly so that it can declare the tests using the MSTest attributes. Somehow, your project must be referencin…
20 Apr 2020 23:51 UTC
-
Intermittent Selenium error: DriverServiceNotFoundException
Hi Adrian, This looks to me like it could be a concurrency issue. Probably, your tests (or the selenium infrastructure they're using) are copying or moving this .exe around while they work. This technically means that the tests can't be safely run at the same time on your machine. You might wa…
20 Apr 2020 05:10 UTC
-
NUnit3 / Teamcity TestExecutionException: Cannot start monitoring test...
Thanks for confirming that this was the problem! I'm glad the new instrumentation mode is working well for you. I look forward to making this the default mode of operation in future :)
20 Apr 2020 05:06 UTC
-
NUnit3 / Teamcity TestExecutionException: Cannot start monitoring test...
Hi Adrian, Thanks for sharing this issue. This error appears when the sequence of events provided by NUnit is inconsistent. NUnit did not send a completion message for the previous fixture before it sent a message saying that the next test had started its execution (invalid sequence). Are …
19 Apr 2020 00:39 UTC
-
Retain collapsed nodes of tree in Tests window
Hi, thanks for posting. The behaviour of the tree is set to always auto expand new tests when they are added to the tree (assuming that they match the filter). This is done so that you can easily see which tests are failing without needing to pick up the mouse and manually expand them all the ti…
17 Apr 2020 23:32 UTC
-
Configuration Advice
Hi Max, Thanks for posting. As NCrunch works with your source code in its pre-built state, there are some serious limits to what we can do here. Structurally, we can't make use of the assemblies that may have been pre-built by the IDE ... This is due to a range of issues such as concurrency r…
17 Apr 2020 00:42 UTC
-
Unstable Test Generation
Nice script! The error kicked up by NCrunch is definitely not water tight. This error is the result of the engine simply comparing the number of tests discovered during the 'Analysis task' with the number of tests encountered using the 'Execution task'. It's possible for the results of each of …
17 Apr 2020 00:27 UTC
-
NCrunch Stuck/Hangs With 'Running (First time run)' For Most Tests In Project
Thanks for submitting the bug report. It looks like this is being caused by an assembly resolution error: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' o…
16 Apr 2020 04:36 UTC
-
Parallel execution not spreading tests across available processes
[quote=applieddev;14610] can i see Expected/Actual Processing Time on NCrunch nodes run via TeamCity or in the TeamCity NCrunch Results? if so, where can i do that? [/quote] I've just checked through the reports we give from the console tool and confirmed that we don't provide the expected pro…
16 Apr 2020 00:10 UTC
-
Parallel execution not spreading tests across available processes
Hi, thanks for posting. Is it possible that these tests have inconsistent execution times, depending upon their execution sequence? If the tests take a longer time to execute than the engine expects (for example, they may depend on some static state to be initialised at the start of their run)…
15 Apr 2020 00:15 UTC
-
NCrunch Stuck/Hangs With 'Running (First time run)' For Most Tests In Project
[quote=nko12;14605] Is there a way to upload the log output? There's way too much of it to post directly as a reply.[/quote] The bug reporter automatically uploads the log output. I'd recommend sending one through. It's often hard to reproduce problems like this using the log output alone ..…
14 Apr 2020 04:37 UTC
-
NCrunch Stuck/Hangs With 'Running (First time run)' For Most Tests In Project
Hi, thanks for sharing this issue. It might be possible to retrieve additional information by setting your 'Log Verbosity' to 'Detailed' and turning on the 'Log to Output Window' setting, then restarting the engine and examining the output in the NCrunch VS debug text window. Or you can submit…
14 Apr 2020 01:22 UTC
-
Garbage Collector mode
Hi, thanks for posting. It's hard for me to give a straight answer on this, because over the years we've accumulated a number of different hosting implementations for all the variations platforms and framework versions we work with, and there are differences between them. I think in some cases…
14 Apr 2020 00:08 UTC
-
With optimized instrumentation generic MSpec behavior fails with "This test was not executed..."
[quote=ljohnston;14591] This fixed behaviors with one generic argument, but behaviors with two generic arguments are still broken (I haven't tried more than two). This can be reproduced using the code in the original post by changing TestBehavior<T> to TestBehavior<T, U> and passing the same type a…
12 Apr 2020 10:49 UTC