Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. 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 …

  2. 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).

  3. 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…

  4. 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…

  5. 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.

  6. 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.

  7. 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…

  8. 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…

  9. 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 :)

  10. 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 …

  11. 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…

  12. 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…

  13. 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 …

  14. 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…

  15. 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. 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)…

  17. 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 ..…

  18. 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…

  19. 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…

  20. 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…