Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
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…
02 Jul 2020 00:09 UTC
-
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. …
01 Jul 2020 00:18 UTC
-
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.
30 Jun 2020 00:03 UTC
-
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…
29 Jun 2020 06:43 UTC
-
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 …
29 Jun 2020 06:37 UTC
-
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…
27 Jun 2020 00:34 UTC
-
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…
27 Jun 2020 00:24 UTC
-
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 :)
18 Jun 2020 08:42 UTC
-
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…
18 Jun 2020 01:10 UTC
-
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?
17 Jun 2020 01:23 UTC
-
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…
15 Jun 2020 23:42 UTC
-
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…
13 Jun 2020 00:25 UTC
-
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)
12 Jun 2020 06:14 UTC
-
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…
10 Jun 2020 23:31 UTC
-
.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. …
09 Jun 2020 23:56 UTC
-
Tests that require TestIsolation in new AppDomain
Thanks for sending this through. The code you submitted gave an interesting result on my end... It seems to work without throwing a stack overflow. I think the cause of this might be something related to the assembly resolution logic in your environment. Perhaps there is a recursive loop happe…
09 Jun 2020 00:33 UTC
-
Csproj with Fakes no longer building/working
[quote=upper;14784] Thx, yeah it seems one of the last vs updates changed something. R# and Vs build are now failing as well, I can now reproduce it with and without Ncrunch, so you don't have to investigate that issue. Thx for your time and sorry. [/quote] No problem. Thanks for letting me k…
08 Jun 2020 10:17 UTC
-
Csproj with Fakes no longer building/working
Thanks for the sample files. I've downloaded them now, so you can remove them if you like. I'll let you know as soon as I have more information. Noting that fakes is involved here ... does it make any difference if you rebuild the fakes references?
08 Jun 2020 10:06 UTC
-
Tests that require TestIsolation in new AppDomain
Do you have the sample in a project that compiles for you? If you can submit it through the [url=https://www.ncrunch.net/support/contact]NCrunch contact form[/url], I should hopefully be able to get to the bottom of this quickly. It's been quite a while since I wrote the code sample you've quoted …
08 Jun 2020 10:04 UTC
-
Empty Test .csproj fails to build
[quote=upper;14777] And THANK YOU for the build it's fixing our problem (no more exception)! You support is absolutely amazing! [/quote] You're welcome! :) [quote=upper;14777] Would you mind sharing some info (what caused this bug, was something wrong with our projects or infrastructur…
08 Jun 2020 10:01 UTC