Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Unstable Test Generation (Removing tests doesn't adjust discovery count)

    Hi Mark, Thanks for sharing this issue. I think the critical step here is to establish a comparison between your discovery runs to identify which tests are unstable. A simple way to do this would be to export your list of tests (in the Tests Window) to CSV or Text, then copy this into a com…

  2. Running tests that use nUnit's Explicit attribute

    Hi Neil, We implemented this a few years ago. Explicit tests should be detected and marked internally with a special flag so that the engine will only run them if you specifically target them with a run action. Until then, they should be listed in the Tests Window as 'Not Run'. There is no spe…

  3. The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized

    [quote=Magbr;14844]The same projects are uncollapsed every time[/quote] How about the build issues? Are you able to reproduce the netcoreapp2.2 build issues in a sample project?

  4. The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized

    Are these problems inconsistent or do they happen for the same projects every time?

  5. The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized

    [quote=Magbr;14839] Would it be a problem that the .net 4.8 assembly references assemblies with other .net framework versions?[/quote] Unless you have the [url=https://www.ncrunch.net/documentation/reference_project-configuration_preload-assembly-references]preload assembly references[/url] sett…

  6. The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized

    [quote=Magbr;14837].net 4.8 builds fine with dotnet build. No errors as I can see from launching the testhost executables.[/quote] Can you confirm that you are able to run tests under other versions of .NET? Are you able to produce this issue in a small sample project that is disconnected fro…

  7. Console Tool: How to run only certain projects?

    [quote=Regenhardt;14834] If I remove the -NCrunchCacheStoragePath, it returns `0 OK` with the same engine mode instead of TestsNotRun. Any idea why?[/quote] This is likely to be because the cache file contains data from other tests from previous runs that are marked as having outdated results. …

  8. Console Tool: How to run only certain projects?

    The /TeamCityDisableTestNotRunFailureReporting switch controls the messages that NCrunch sends to TeamCity, but it doesn't affect the process exitcode. Your batch file is the correct solution to this problem.

  9. Allow Code Analysis option does not apply to Roslyn analyzers

    [quote=distilled;14827]Not sure if this is the right place for this feedback, or if a feature request would be more appropriate. Roslyn analyzers provided by NuGet packages can significantly increase the time it takes to build a project. NCrunch has a configuration setting to disable code analysi…

  10. Doesn't seem to install

    [quote=mdwoodruff;14828] <Edit:> I noticed the Manual Installation Instructions in the documentation and tried this. I followed the instructions for 2017 (2019 isn't available) and was able to get it working.[/quote] I'm not sure what happened here. Normally the installer touches a magic file …

  11. The FrameworkReference 'Microsoft.WindowsDesktop.App.WPF' was not recognized

    Hi, thanks for sharing this issue. The IPC connection closed exception is a catch-all exception thrown by NCrunch when the test process suddenly disappears without warning or provided reason. There is a near limitless range of things that can cause this. In your situation, the process is term…

  12. Console Tool: How to run only certain projects?

    NCrunch will return the TestsNotRun result if there are tests stored in the model that have an unexecuted status (i.e. their result is out of date or there is no execution history for a discovered test). Most likely the reason for this is because you have impacted tests that are stored in the cache…

  13. Tests that require TestIsolation in new AppDomain

    [quote=GibSral;14809]Works in my test project and in the production tests! Thank you very much![/quote] Excellent! Thanks for confirming :)

  14. Tests that require TestIsolation in new AppDomain

    I may have a better solution. Here is the code for the method you're calling. Just include this in your own project and there will be no need to resolve the assembly at all: [code] /// <summary> /// Returns all assemblies detected by NCrunch as being required or referenced by t…

  15. All tests are run in CD-CD pipeline

    Usually, the console tool should dump the settings used right at the beginning of the run. Can you try adding a '-LogVerbosity Detailed' to your command line and checking to see whether the cache path setting is being accepted by the tool?

  16. All tests are run in CD-CD pipeline

    Hi, thanks for posting! NCrunch stores hashes generated from the IL structure inside its .cache file, the location of which is determined by the [url=https://www.ncrunch.net/documentation/reference_solution-configuration_ncrunch-cache-storage-path]NCrunch cache storage path[/url] setting. Make s…

  17. Tests that require TestIsolation in new AppDomain

    Thanks for the extra details. This is making sense now. It seems this code requires the referenced version of NCrunch.Framework DLL to be installed in the GAC. In most cases, this is a safe assumption, as NCrunch automatically installs this DLL into the GAC during installation. I guess in this…

  18. Tests that require TestIsolation in new AppDomain

    [quote=GibSral;14793]unfortunately disabling instrumentation does not solve the problem [/quote] Can the test run on your machine using a different test runner? (i.e. VSTest)

  19. Unstable Test Generation

    Hi Peter, If you're experiencing this issue and can't find the cause of it, the best thing to do is to compare NUnit's discovery XML output between the analysis task and the test discovery task. If you set your NCrunch log verbosity to 'Detailed', NCrunch will write NUnit's XML output into the…

  20. .NET Core test project does not pick up settings from app.config or appsettings.json

    Hi, thanks for posting. I'm personally unaware of anything particularly special that needs to be done to get settings working under NCrunch with .NET Core ... Although, I'm guilty of not being overly familiar with the settings model under .NET Core, and no one has asked me this question before. …