Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. How to remove .ncrunchproject files from .Net Core project

    The problem with doing this by default is that we've had people using the product for 8 years (most of them prior to .NET Core), and storing config files adjacent to project files is the way it's always been. So to suddenly change this by default for .NET Core projects would jarringly impact many p…

  2. Exclude tests based on wildcard

    There is a way to do this using the 'Tests to execute automatically' filter, but actually I think a cleaner way would be to do the following: #if !NCRUNCH [Test] #endif public void MyTestHere() { ...

  3. Could not locate the assembly "System.ValueTuple"

    [quote=NuvasiveIOS;13148] Thanks for the explanation. In my case, adding the dll to 'Additional Files To Include' didn't change anything since the dll with or without it is found within _ncrunchreferences. The only thing that was different was the csproj. Unfortunately, I cannot update our build/re…

  4. Could not locate the assembly "System.ValueTuple"

    The main issue here actually comes from a little known redirection system that Microsoft introduced in a minor update to VS2017 around the middle of last year. System.ValueTuple is one of a number of assemblies that can be redirected internally inside the MSBuild system to a different location. …

  5. Support for VS 2019?

    [quote=MatthewSteeples;13145] Would appear I was wrong :P[/quote] I'm quite relieved :) P3 definitely did not feel very final to us. I hope they have everything ready in time..

  6. Hiding NUnit unit test with the Ignore attribute

    Unless you have disabled the MSTest adapter, this test will still be discovered by MSTest. MSTest uses its own ignore attribute and does not consider the NUnit one. This means you'll need to ignore the test for both frameworks.

  7. Slow unit test runs forever

    It's better not to think of tests as having high algorithmic complexity, but rather code itself. Look for areas of your code where the NCrunch hotspots are showing your tests as spending a large amount of time, and suppress coverage for these areas. These areas are unlikely to cover a very large…

  8. Could not locate the assembly "System.ValueTuple"

    Thanks for sending this through. We'll take a look and will let you know as soon as we have more information.

  9. Hiding NUnit unit test with the Ignore attribute

    Hi Alberto, NCrunch will not discover tests marked with an NUnit ignore attribute. If a test is marked with this correctly, it will never show in the tests window.

  10. Slow unit test runs forever

    Disabling instrumentation is something I would suggest in this case only as a temporary measure to discover the source of this problem. When it's off, you'll lose all code coverage information. Better to find the bottleneck methods and simply use the coverage suppression for them to make them ru…

  11. Slow unit test runs forever

    Do you have any tests with high algorithmic complexity? Try temporarily disabling the [url=https://www.ncrunch.net/documentation/reference_project-configuration_instrument-output-assembly]instrument output assembly[/url] setting to see if this makes a difference, or find blocks of code that have the…

  12. How to remove .ncrunchproject files from .Net Core project

    Hi, thanks for posting. The .NET Core CPS project system used by VS will implicitly include any file in the project directory. It isn't safe for NCrunch to mess with this logic. You can, however, configure NCrunch to place its config files in a different place using the [url=https://www.ncrun…

  13. Slow unit test runs forever

    Hi Alberto, I'd suggest hooking a debugger onto these hung processes to see what they're doing. As they're likely executing user code, unfortunately there's no blanket answer I can give as to what might be causing this. Note that if this is the first time you're running tests over a solution,…

  14. Unstable Test Generation

    Hi, thanks for sharing this issue. The problem here is that when NCrunch asks NUnit for a list of tests, it's getting a different result even though the assembly is exactly the same. It isn't possible for NCrunch to know specifically which tests are at fault here. It also isn't possible for N…

  15. Forcing NUnit

    For this you can just disable one of NCrunch's adapters and use the framework of your choice. The MSTest one is probably higher performance, as it's actually an emulator (not integrated), so NCrunch has more optimisation options for it.

  16. How to Prevent Build Events on .NET Standard 2 Library

    Hi Chris, Thanks for sharing this problem. There are two different pre-build events that can be declared in a project. One is using the 'PreBuildEvent' project property, the other is by declaring a pre-build target. By default (and through the configuration setting you've found), NCrunch d…

  17. Forcing NUnit

    Hi Alberto, NCrunch uses its own adapters to interact with test frameworks, it doesn't integrate with Resharper or VSTest. So the only way for NCrunch to run NUnit tests is with its NUnit adapter, and the only way it can run MSTest tests is using its own MSTest adapter (which is actually an emul…

  18. Forcing NUnit

    Hi Alberto, I'm not entirely sure what you're asking. NCrunch uses different adapters for each of these frameworks. If you have a project using both frameworks, NCrunch will use both adapters to execute all of the tests. It's possible to disable the adapters on a per-project basis via the co…

  19. Support for VS 2019?

    An update here.. We've actually been quietly working on this since December. MS have made significant internal changes in VS2019 and we wanted to be ready for this release, so we've been working with them in lockstep (admittedly somewhat painfully). I'm aware that they've announced a launch d…

  20. 5GB of dataset needed by unit tests

    Hi Alberto, For resources of this size, copying to workspaces is not recommended. You'll probably run out of disk space if you have too many runner processes. Instead, try using the [url=https://www.ncrunch.net/documentation/reference_runtime-framework_environment-class]NCrunchEnvironment.Get…