Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Timeout for tests with dynamic data

    Yes, this was why I wasn't 100% confident on the DynamicAnalysis being a solution for you, as it does have certain limitations. Enums are considered user types in IL, so I guess they fall under the blanket rule of not being a primitive type. Perhaps try converting them into strings and then back a…

  2. Timeout for tests with dynamic data

    Hi, thanks for sharing this. First, I recommend checking the 'Framework utilisation type' setting for MSTest, as setting this to DynamicAnalysis may allow NCrunch to enumerate the test the way you'd like it to (which would solve the problem). If the above doesn't work, I'd suggest using [url=h…

  3. Unwanted padding of windows in Rider

    Thanks. This may be able the best I'm able to do here. This is a Winforms UI being piped through 3 processes and into a JVM environment, inside a dockable pane that it can't control, and subject to a lot of DPI hacks to prevent it from warping.

  4. Unwanted padding of windows in Rider

    Thanks for these extra details. Would you like to try the build below and let me know if it solves the issue for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_5.21.0.2.msi]NCrunch_Console_5.21.0.2.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_C…

  5. Intermittent failure to find cshtml files by NCrunch

    Thanks for the repro. I've gone down a bit of a rabbit hole trying to get this to work for you, but I think I'm going to have to admit that you aren't likely to get this particular test structure working with NCrunch. This MS toolset essentially relies on magic to find the razor files, and my at…

  6. Intermittent failure to find cshtml files by NCrunch

    Looking under the hood at how this works, I think the key here is how the root path to the Razor views is being set. This will likely depend on your test code (i.e. WebApplication.CreateBuilder / Host.CreateDefaultBuilder). It may be dependent on Directory.GetCurrentDirectory(), so if you have any…

  7. Unwanted padding of windows in Rider

    Thanks for sharing this information. From what you've provided, I've had a go at reproducing this problem. I can occasionally produce intermittent problems where the tool window has padding, but resizing it always immediately corrects the issue. This contrasts with the issue you've described wh…

  8. Intermittent failure to find cshtml files by NCrunch

    Hi, thanks for sharing this issue. Can you share any details about how you're finding the .cshtml files in your code? This feels like you have an [url=https://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies]implicit dependency[/url] on them that NCrunch is…

  9. Unwanted padding of windows in Rider

    My suspicion right now is that the problem is being caused by the DPI scaling not being handled consistently through the wormhole. Has the problem returned at all now that your DPI scaling is consistent between monitors? If not, does turning on the scaling difference cause it to reappear? Per…

  10. Metrics window -- name colomn with extends beyond border

    Hi Anders, Normally, this setting should be stored in the .ncrunchsolution.user file (which is where NCrunch itself will put it), but it doesn't actually have to be. It's possible for it to be hand-coded into any of the solution or global settings files. I would suggest a full configuration r…

  11. Unwanted padding of windows in Rider

    Thanks for confirming this. Are you running with DPI scaling at all? Perhaps multiple monitors with different scaling settings?

  12. Unwanted padding of windows in Rider

    Hi Peter, Thanks for sharing this. Does resizing the window suppress the issue?

  13. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    [quote=ndeslandes;18507] Shame that the ordering isn't taken into consideration; it would be nice if in this setup above, NCrunch avoided scheduling jobs on core 2,3 if it had only 4 parallel jobs running. Although tbh that would be pretty difficult to do in practice if you start off with 100s of j…

  14. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    [quote=ndeslandes;18505] One thing I was wondering, is the list of cores assigned to NCrunch ordered? Like if I have this setup: IDE Cores: 0, 2, 4, 6 NCrunch Cores: 1, 3, 5, 7, 2, 4, 6 Would that cause NCrunch to only use cores 2, 4, 6 if it has more than 4 parallel jobs to run?[/quote] N…

  15. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    Jackpot :) I can only speculate about why this was causing some of the weirdness you've found here. I'm impressed at the level of creativity you've shown in diagnosing the problem. To avoid any performance issues, I recommend ensuring VS2022/2026 has at least 4 cores, ideally 5. I realise th…

  16. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    Checking the environment variables was worthwhile... my first thought was whether there was a setting propagating into MSBuild that changed its lifecycle, clearly that's not the case. Can you check the windows event viewer? If the MSBuild.exe process was torn down unexpectedly, there might be er…

  17. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    [quote=ndeslandes;18495] A few more precisions on what I've observed: [list] [*] The freeze doesn't happen if NCrunch is enabled when solution is open and then disabled, only if the solution starts with NCrunch disabled for it [*] It happens on any solution, including brand-new .NET 10 slnx Co…

  18. Rendering each test case for an XUnit Theory

    I apologise in providing some misleading advice above. Another user has managed to get user types enumerating with classdata by implementing IXunitSerializable - [url=https://forum.ncrunch.net/yaf_postst3640_XUnit--Memberdata.aspx]https://forum.ncrunch.net/yaf_postst3640_XUnit--Memberdata.aspx[/url…

  19. VS on 100% CPU for several seconds on each build when NCrunch is disabled

    Would you be able to submit a bug report? The report contains a section on configuration settings that I'd like to review. It would also be interesting to see what MSBuild is doing. Do you think you could attach a debugger to it during the hang, and examine the running threads? Another inter…

  20. XUnit, Memberdata

    Hi, thanks for posting. Xunit rolls up the cases for this test (on instruction from NCrunch) because they are built using a user-defined type declared on their signature, which introduces significant complexity and risks when transferring them from the test discovery domain into the runtime envir…