Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. 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…

  2. 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?

  3. 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…

  4. 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…

  5. 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…

  6. 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…

  7. 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…

  8. 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.

  9. 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?

  10. 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…

  11. 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 …

  12. "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…

  13. 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.

  14. 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…

  15. 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?

  16. 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 …

  17. 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;…

  18. 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?

  19. 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…

  20. 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.[…