Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
Tests with Category Not Showing Up in Tests Window
Hi Ed, Thanks for sharing the code. I've created a small sample project and included the source provided. In this project, NCrunch seems to correctly detect the 'EntityFramework' category and this is visible in the Categories column for the child test as shown in the Tests Window. As per usu…
05 Aug 2021 00:52 UTC
-
Location of Search Box
Hi Ed, Thanks for posting. Do you mean the search box on the Tests Window? Did you know that if you start typing while you have the main grid on the Tests Window selected, it will automatically go to the search box?
05 Aug 2021 00:42 UTC
-
Unit Testing Source Generators
[quote=Silvenga;15577]I'm using the GeneratorDriver (https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.generatordriver) to exercise the source generator in unit tests (to test the syntax trees produced), so compilation breaks when the interface is removed. Above is an example helper…
04 Aug 2021 01:32 UTC
-
NCrunch hangs during Build with Engine Core Load 97%
Thanks for sharing this issue in so much detail. I appreciate how hard it must have been to extract this exception. I agree that this looks like a race condition in the type resolver. I've reviewed the code involved and have a theory about what could be causing this. Unfortunately, I don't hav…
03 Aug 2021 12:55 UTC
-
Unit Testing Source Generators
[quote=Silvenga;15571] The problem though, I'm unit testing the source generator. I'm not running the source generator. The source generator project is not referenced as an analyzer. [/quote] Understood. In your situation, the check is definitely too broad. The question at large is one wher…
03 Aug 2021 08:13 UTC
-
Unit Testing Source Generators
Hi, thanks for sharing this problem. In NCrunch v4.9, we introduced support for compile-time source generators. One of the main issues we needed to overcome was related to NCrunch's instrumentation. When the source generator runs at compile time, it executes the source generation code inside an…
03 Aug 2021 00:30 UTC
-
Tests with Category Not Showing Up in Tests Window
[quote=CoolBreeze;15568] Oops, sorry to leave off the test framework info. Here it is: Visual Studio 2019 4.9.08 (I just upgraded last week). I tried both versions of the attribute: <Category("EntityFramework") <NUnit.Framework.Category("EntityFramework")> Neither version work…
03 Aug 2021 00:03 UTC
-
Large solution - Visual Studio 2019
Hi, thanks for sharing this. Would you mind submitting a bug report after you've had this happen to you? Something must be failing under the hood here.
01 Aug 2021 23:58 UTC
-
Tests with Category Not Showing Up in Tests Window
Hi Ed, Thanks for posting. Can you clarify which test framework you're using? Do you see the same result if you use NCrunch.Framework.CategoryAttribute instead?
31 Jul 2021 00:18 UTC
-
Apphost.exe was not found
I've done a bit more experimentation around this issue. Right now it looks to me like the AppHost.exe error appears when attempting to build using the preview version of .NET6. Because MSBuild always rolls forwards into the preview versions under NCrunch (as described in the thread above), this me…
29 Jul 2021 04:23 UTC
-
Apphost.exe was not found
[quote=MarcChu;15560]I'm having this same problem. However, I'm having it in VS2022 preview (it seems that others are having it in VS2019), and I'm not having the problem locally. Rather, I'm having the problem on 2 out of 3 of my distributed nodes (the other one builds just fine). When I first ran …
28 Jul 2021 23:33 UTC
-
"unable to resolve dependency data for NCrunch internal assemblies"
Hi, thanks for posting. This problem is caused when something blocks MSBuild from restoring packages on your machine. This could be due to a firewall or virus scanner, or maybe something in your security settings. The good news is that it's fairly easy to work around it. Usually the error co…
23 Jul 2021 23:49 UTC
-
Apphost.exe was not found
[quote=bhugot;15553]Ok thanks last option is fine for me. Did you see or posted an issue to microsoft on this?[/quote] No. I think it's extremely unlikely that they don't know about the issue. You are welcome to report it to them if you can find the time.
22 Jul 2021 12:45 UTC
-
Apphost.exe was not found
Thanks to your help, I've managed to reproduce this issue. Even after I had it consistently happening for me, it took a while to figure out what was actually going on. I'm not terribly impressed with how MS have implemented this under the hood. Basically, the root problem appears to be due to a…
22 Jul 2021 11:23 UTC
-
Apphost.exe was not found
Thanks for sharing this issue. Are you able to provide a self contained code sample that can reproduce this issue? Or otherwise guidance on which VS project template can cause it?
22 Jul 2021 00:55 UTC
-
IXunitSerializable and serializable
Perhaps the issue here was with the wording of my response. When I suggest a solution to a problem, I often try to avoid making a determined statement that it will solve the problem (even when it works on my side), since often people will come back and accuse me of being wrong. I'm learned not to …
19 Jul 2021 14:01 UTC
-
The target "_SplitProjectReferencesByFileExistence" does not exist in the project.
[quote=DavidPartington;15544] Uninstalled NCrunch. Rebooted. Reinstalled NCrunch and it's WORKING :) I really have no idea what was broken, or exactly what fixed it, but uninstalling both VS and NCrunch and re-installing them both has fixed it. [/quote] AWESOME!! [quote=DavidPartington;…
19 Jul 2021 13:30 UTC
-
IXunitSerializable and serializable
[quote=Dirk Maegh;15535] It does not explain though why NCrunch sees only one test case ?[/quote] This would be due to the inability to tell one instance of the user type apart from another. Does overriding .ToString() and the equality/hashing methods resolve this?
17 Jul 2021 02:02 UTC
-
The target "_SplitProjectReferencesByFileExistence" does not exist in the project.
There are some subtle differences in how VS handles the build of projects vs how they are handled by MSBuild. This includes everything from different property values injected into the build to environmental differences in the process doing the work. NCrunch's build system is more closely aligned…
17 Jul 2021 02:00 UTC
-
Project failing to build - stuck in 'First time build' status
[quote=MihaMarkic;15537]Hm, not sure what or when it happened, but the project is building again and tests are running. Before that I've tried to isolate the problematic project, but it worked in a new solution. Basically it's fine now and I can't reproduce it anymore. Hopefully it won't reappear.[…
17 Jul 2021 01:44 UTC