Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. StackOverflowDetectedException in NCrunch, but test passes in other runners

    Hi, thanks for sharing this problem. NCrunch intercepts stack overflows by tracking the size of the overall stack and throwing an exception when it reaches a certain threshold. This process is not as perfect as I'd like it to be, owing that the acceptable stack size seems to be extremely variabl…

  2. .NET MAUI Support

    Great to hear! I noticed that the MAUI projects are extremely large and seem to have a very long build time (even outside of NCrunch). I hope they find a way to speed these up in future. The warning you've been given isn't a big deal unless you're experiencing runtime issues. If you add a refe…

  3. SpecFlow + TestContainers -- How to tweak NCrunch to behave similar to other runners?

    Hi, thanks for posting! This behaviour is due to a technical difference with how NCrunch is implemented vs serial test runners. There are usually ways you can solve this in your own code - see [url=https://www.ncrunch.net/documentation/considerations-and-constraints_test-atomicity]test atomicity…

  4. Warm up cache before running tests.

    Hi James, Thanks for posting! This is a very common situation with most testing suites. It's often difficult to solve this outright but it can be mitigated. Increasing your [url=https://www.ncrunch.net/documentation/reference_global-configuration_max-test-runners-to-pool]Max test runners to …

  5. Test log lines get cleared after failure

    Hi, thanks for sharing this problem. NCrunch redirects and captures everything written to the Console stream. This will be shown in the output in the Tests Window regardless of whether the test has passed or failed. At least, it's supposed to. Can you check the coverage markers of the failin…

  6. .NET MAUI Support

    Would you be interested in trying the build below? I'm hoping it will work for you with MAUI. [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.14.0.3.msi]NCrunch_Console_4.14.0.3.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.14.0.3.zip]NCru…

  7. NCrunch does not work if dotnet is not installed at C:

    [quote=GreenMoose;16205][v4.13.0.1] p.s. To get dotnet installed on another drive I modified the ProgramFiles shell folder before installing vstudio 2022, and then reverting it back to C: again d.s.[/quote] Thanks for letting me know how you did this. I was scratching around to try and find way…

  8. Coverage Markers not working

    [quote=PoorHippo;16201]I faced similar kind of issue last time, I am still searching for some proper solution Same issue still no fix to this. [/quote] Can you confirm if you've tried the tips in the troubleshooting page linked above? We presently have no outstanding issues in this area that we…

  9. Test Failures After Adding Empty Test

    [quote=CodeAdze;16202]It's not even an open source project it's just something I've started writing for myself, I would be more than happy to share it with you. I will just fix the tests that are causing the Out of Memory failures when NCrunch is in Constant Churn mode as you suggested I should and …

  10. Test Failures After Adding Empty Test

    [quote=CodeAdze;16199] You said there could be a wider instability going on here and I completely except that it could be something in my test suite, I freely admit I'm no gun programmer, I'm not even a professional (but I bet I'm more passionate and interested than most pros). [/quote] Just th…

  11. Test Failures After Adding Empty Test

    Thanks for sharing these extra details. Normally when encountering this problem, NCrunch executes an extra discovery step inside the runner process so that it can establish why the list of tests is inconsistent. This allows it to report in more detail which tests are causing the problem. Howeve…

  12. Path too long error still prevents project from building

    [quote=GreenMoose;16196] Is there any plan of to resolve this? The solution builds fine with dotnet build and in vstudio, but NCrunch fails (with default settings). Modifying workspace path config to use e.g. C:\WS works for solutions I've tested so far, but it is a pity if trying to make more u…

  13. Test Failures After Adding Empty Test

    I've taken another deep dive on the log you've submitted and also done some local tests to ensure the framework integration is working as expected. I am fairly close to 100% certain that this problem is being caused by unstable test generation in your test suite. Basically, something in your tes…

  14. Test Failures After Adding Empty Test

    Thanks for sending through the log file. Something very strange is going on in NUnit here. Can you confirm which version of NUnit you're running? Are you using any NUnit assembly-level attributes or settings that might be considered unusual? Do you have any NUnit extensions loaded?

  15. Test Failures After Adding Empty Test

    Hi, thanks for sharing this issue. This looks like some kind of internal stability issue. Can you reproduce the problem during a session then submit an NCrunch bug report? I'm hoping the log in the report might give us some clues about what is happening here.

  16. .NET MAUI Support

    Hi, Thanks for flagging this up. Support for MAUI is unavoidable for us given that everything seems to be moving in this direction. Given its preview situation we haven't done any extensive testing in this area. I was hoping it would work through the existing abstractions, but a quick test on …

  17. Why won't tests run on distributed node?

    [quote=MarcChu;16183]Yes! That seems to have improved things greatly. It will take some time to determine whether this looks well solved, but I'm definitely optimistic, given the initial results.[/quote] Excellent! Thanks for confirming this :) [quote=MarcChu;16183]Also, I initially [i]though…

  18. Why won't tests run on distributed node?

    Would you be interested in trying the build below? This includes the above mentioned fix for the batching: [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.14.0.2.msi]NCrunch_Console_4.14.0.2.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.14…

  19. Why won't tests run on distributed node?

    Thanks for sharing these extra details. I've taken another look at the way the batching logic works in the context of the use case you've described above. I think I understand what is happening here. Basically, the batching is designed to watch for situations where a fixture may have a slower…

  20. Why won't tests run on distributed node?

    Those expected execution times are definitely way off. Do you have much in the way of load-on-demand behaviour through your codebase? I'm wondering how consistent the execution times for your tests are in general. It would be interesting if you are able to provide an export from the Tests Window …