Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
Base class is not showing any code coverage
Thanks! Can you confirm whether your refactoring was done manually or with a tool? (i.e. VS built-in refactorings or Resharper)
31 Oct 2023 23:44 UTC
-
OpenCover report
[quote=simongh;16903]Thanks, appreciate your input on this. My assumption was that the NCrunch addin vs the console tool would be built from the same code, so shouldn't generate significantly different files. I'll post my my opencover files to Sonar & see what they have to say.[/quote] Sorry, …
31 Oct 2023 23:42 UTC
-
Controlling the batch size
From the features we have available, the closest thing I can think of would be to use [url=https://www.ncrunch.net/documentation/reference_runtime-framework_atomic-attribute]atomic attribute[/url] on a large fixture that contains many test cases, each one of which is an integration test that is set …
31 Oct 2023 23:28 UTC
-
OpenCover report
Sorry, there's not much further I can take this issue without input from Sonar. Right now we're just making empirical guesses about the way that they parse this file. If they're able to provide more detailed information about what they feel is wrong with the file, I will look at making adjustments…
30 Oct 2023 22:59 UTC
-
Base class is not showing any code coverage
[quote=nCubed;16897]And just like that the code coverage markers are back again; similar to another user's post a bit ago. FWIW: in the time I had posted the original message, I had done a complete system shutdown and reboot. To answer your question, there were no markers. Just the standard VS gu…
30 Oct 2023 04:58 UTC
-
Base class is not showing any code coverage
Hi, thanks for sharing this issue. Can you confirm whether the black/white markers are showing on the base class with the missing coverage? (relevant as it determines whether the type is instrumented correctly). If you run the covering tests under NCrunch with a debugger attached, do breakpoin…
29 Oct 2023 23:36 UTC
-
.NET8 Preview 7
I've looking into .NET 8 support now under NCrunch, as it's reached RC status and looks ready to drop soon. The good news is that at a cursory glance, it seems that the builds of NCrunch we have out right now can probably already handle .NET 8. The error being kicked up here is caused by NCrunch…
28 Oct 2023 08:21 UTC
-
CilAssemblyNotFoundException
[quote=IanBowyer;16891]Thank you that worked. I knew there would be a setting somewhere I just couldn't find it.[/quote] Thanks for confirming this. We do have a fix pending for this issue which will be out with the next release. I'd suggest staying with DynamicAnalysis for now.
04 Oct 2023 13:01 UTC
-
CilAssemblyNotFoundException
Hi, thanks for sharing this issue. Can you confirm if setting your 'Framework utilisation type for MSTest' to 'DynamicAnalysis' works around the problem?
04 Oct 2023 11:12 UTC
-
ClassInitializeAttribute from Base Class isn't executed (MSTest)
Sorry, we've pretty snowed under with V5 work at the moment. I hope to get to this issue later in the year. I'd recommend adapting your code with a workaround for the time being, I don't think I'll be able to provide a fix for this in the short term.
27 Sep 2023 23:34 UTC
-
Tweak settings to behave like "dotnet test" runner with 1 process ?
Hi, thanks for sharing this issue. Because of the design of the engine and the limitations of the frameworks we integrate with, we can't have NCrunch simulate the process hosting behavior of a serial test runner without axing many of the features that make it worth using. Marking the tests with …
27 Sep 2023 11:11 UTC
-
Endless churn to respect engine mode
Hi, The best way to do this is to pin the tests you want to churn, then select them in the Tests Window and use the context menu option to churn the tests until they fail. Churn mode lets you work with targeted tests too (not just the whole lot), so I hope there would be no need to involve the…
23 Sep 2023 00:42 UTC
-
NCrunch fails to build a project when there's a file in it with long path
Hi, thanks for sharing this issue. The last time I checked, support for LongPathsEnabled is quite hit-and-miss in the underlying toolset, so this particular error can still happen. The simple fix for this issue is to change your 'Workspace base path' setting to put it closer to the root of C: …
20 Sep 2023 23:54 UTC
-
Unable to pin or unpin tests in bulk
Hi, thanks for sharing this issue. We haven't changed anything around the pinning functionality in quite a while. Can you submit a bug report after using the bulk unpin option and having it fail for you? I'm hopeful the log in the report will yield some clues as to what is happening here.
18 Sep 2023 00:31 UTC
-
NCrunch.Framework 4.17.0.5 transitive dependency vulnerability
I would argue that this is probably a false positive. NCrunch.Framework only has one package reference, which is to System.Collections.NonGeneric. I expect this is probably being raised because NCrunch.Framework is compiled to target netstandard 1.5, which is done for compatibility with older ve…
14 Sep 2023 23:22 UTC
-
NCrunch tests fail randomly
It does feel like a bit of an intellisense trap. There should be a relatively trivial way to search out these calls and flag them up in a test using Mono.Cecil to traverse the test assemblies and examine the IL in each method. It might only take a few minutes to write (maybe ChatGPT could even wri…
09 Sep 2023 00:14 UTC
-
ClassInitializeAttribute from Base Class isn't executed (MSTest)
Hi, thanks for sharing this. Yes, we have no handling for InheritanceBehavior.BeforeEachDerivedClass. I'll take a look and see if we can find a way to introduce it.
09 Sep 2023 00:07 UTC
-
NCrunch tests fail randomly
Wow, this is nasty. We've had our own share of sequence dependent issues like this with our tests. It's not easy to track them down. You did well to isolate this. I'd suggest raising it with the NSubstitute devs. It seems like something that many people would have trouble with. Note that…
07 Sep 2023 23:00 UTC
-
NCrunch tests fail randomly
I suspect this issue may depend on the sequence in which your tests are executing. Can you try placing the NCrunch.Framework.IsolatedAttribute at assembly level in all of your test projects? It will be interesting to see if this gets rid of the problem. When tests are marked as isolated, they w…
07 Sep 2023 10:46 UTC
-
Avalonia Build Failure -- InitializeComponent
Hi, thanks for posting. We haven't put in place any integration with Avalonia. My best guess would be that this is being caused by a malfunctioning build step or a file that isn't being picked up by NCrunch. Could you try [url=https://www.ncrunch.net/documentation/troubleshooting_compatibilit…
07 Sep 2023 07:31 UTC