Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Processing queue often empty, but *something* is running

    Sorry, I just realised my suggestion for analysing the hung tests was written in a different thread: [quote] There is a way to debug inconsistent behaviour like this. It involves implementing your own timeout mechanism around the test itself, and making a call to System.Diagnostics.Debugger.Laun…

  2. Could not load file or assembly 'System.Runtime, Version=4.1.1.0...'

    Sorry, it looks like I may need to ask for a code sample that can reproduce this :( This is going to be a tough one to figure out. The CLR is having an internal issue while trying to load this assembly. My experience with these sorts of problems suggests that trying to get specific information …

  3. Processing queue often empty, but *something* is running

    [quote=abelb;11219] It's the same project, but not precisely the same moment (I mean, when I sent the report, the queue was filled). I will try to repro that particular situation and send a report on that too. [/quote] Understood. This is the problem I feel the best equipped to solve via the b…

  4. Processing queue often empty, but *something* is running

    [quote=abelb;11214] Another strange behavior with this particular project is that if I run all tests, it seems to sometimes spontaneously restart my system (without any log entry in the event viewer, or blue screen). I have yet to determine whether this is caused by NCrunch or the project itself. W…

  5. NCrunch testrunner crashes on a Debugger.Break()

    This is handled by the O/S itself. I guess it's possible for NCrunch to rip these calls out during instrumentation, but sometimes they can be useful if you want to hook a debugger onto a running session (which I believe is often the intention). I think it would be rather messy or even detrimenta…

  6. NCrunch does not honor the max timeout and runs tests forever

    NCrunch's enforcement of timeouts (under .NET Framework) is handled using ThreadAbortException. Unfortunately, this approach is not 100% reliable. There are certain low level calls that seem to be able to block it, allowing the process to be hung in these calls and preventing the timeout from prop…

  7. Processing queue often empty, but *something* is running

    Hi, thanks for sharing this problem. In a situation like this, the processing queue should never be empty. Something is going wrong. Could you submit a bug report after you've had this happen to you? The settings to turn on visible logging are 'Log to output window' and 'Log Verbosity'.

  8. NCrunch v3.11 - nCrunch.VSIntegration2017.dll could not be found.

    This is almost certainly a continuation of the file blocking problem. When the files are decompressed, windows will block every single one. If there is a single DLL that is still blocked when you try to load the package, you'll see this error or something like it. Make sure you've unblocked every…

  9. NCrunch v3.11 - nCrunch.VSIntegration2017.dll could not be found.

    Hi Joe, Thanks for posting. Something to check is whether the O/S is blocking access to this through its magic 'blocking' feature. Try right clicking on this file in Windows explorer and choosing Properties, then look to see if there is an option to 'Unblock' the file. If the option exists…

  10. NUnit3 Retry attribute

    In theory, the logic of this attribute should be handled internally by NUnit and shouldn't require any involvement from NCrunch. I can't say that I've specifically tested it, but I can't tell you any reason why it wouldn't work. I recommend giving it a try. Again, in theory, I can't think of an…

  11. Unable to get correct test timings using the Console Tool with TeamCity without duplicated tests

    Hi, thanks for sharing these issues. NCrunch's TeamCity integration is minimal. It's also quite out of date. Since this isn't a primary feature area of the product, it hasn't seen the same levels of attention as other areas. At the time it was implemented, the manner in which test results had …

  12. ConsoleTool: Not run tests if build is failing?

    [quote=GreenMoose;11196] I had this in mind as well bug figured the NCrunch workspace will be left uncleaned, does NCrunch do something smart with workspace/cachefolder leftovers so it cleans them eventually even if I simply kill the process now and then? [/quote] If the process gets killed, th…

  13. ConsoleTool: Not run tests if build is failing?

    There isn't anything in NCrunch that can be configured to do this. The engine will always build what it can, then run tests with whatever assemblies it managed to build. Having a separate compile step before running NCrunch is one way to do this. An alternative would be to rig something up to c…

  14. Configuration/UseBuildConfiguration not supported by console tool?

    [quote=ljohnston;11189]We're moving to using the console tool to do our CI testing and ran into this as well. We would like to ensure we're building in release configuration for CI but use the default elsewhere. We could (and may) use the workaround you mentioned but it seems odd that this isn't sup…

  15. Disable auto restoring nuget packages

    My guess would be here that because the console tool does this for each individual project, it's less efficient than doing it for the solution as a whole. Probably if you have many projects using many nuget packages, 12 minutes might even be achievable in a worst case scenario. I'm considering d…

  16. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Hi Tony, can you confirm whether the 3.12.0.1 build has solved this problem for you?

  17. Building precompiled C# Azure Function fails

    [quote=SteveC;11180] @Remco ... any plans to offer support of the various Azure projects, especially the App Service ones, i.e. Web / API / Function App ?[/quote] Sorry :( No short term plans for this. I'm currently overloaded trying to keep up with platform level changes and don't have the c…

  18. Context menu Shift+F10 stopped working in 3.12.0.2 (worked in 3.10)

    I've been making changes to the context menu in preparation for some performance improvements, to resolve problems with the opening times being so high. These changes included moving the opening options to a mouseclick, and it looks like the keyboard shortcut was missed. So this is a regression.…

  19. Don't know how to fix constant "This test was not executed during a planned execution run."

    You'll need to disable this attribute when working under NCrunch. For example: #if !NCRUNCH [assembly: Parallelizable(ParallelScope.Children)] #endif Tracking code coverage data is impossible when tests are being run concurrently in the same process, because there is no way to differentiate…

  20. NCrunch failing to build 4.6.1 project (VS2017)

    Hi Jon, Thanks for sharing this problem. This looks to be a regression in v3.11. Try the build below and see how you go: [url=http://downloads.ncrunch.net/NCrunch_Console_3.12.0.2.msi]http://downloads.ncrunch.net/NCrunch_Console_3.12.0.2.msi[/url] [url=http://downloads.ncrunch.net/NCrunch…