Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Issue when using conditional compilation symbols in linked file

    Hi Yang, Thanks for sharing this! I was able to solve this problem by adjusting the NCrunch configuration for the test project, setting 'Use build platform' to x86. The core issue is that NCrunch doesn't make use of the settings in the Visual Studio Configuration Manager when building projects.…

  2. ncrunch can' t build at first time.

    There shouldn't be any problems with running x86 processes on an x64 processor - so most likely it will be something else. I'm wondering if you'd be able to help with answering a few quick questions - this will help with narrowing down the cause of the problem: - Which version of Visual Studio a…

  3. ncrunch can' t build at first time.

    Hi, thanks for posting! This issue appears when NCrunch tries to create a process in which to execute tests. In rare situations where the process completely fails to initialise, the invocation will time out. Is it possible that you've set up the test project or NCrunch to create an x64 testin…

  4. Copying files with custom build action

    Hi David, The approach you have above is one of two ways you can solve this problem. The other option is to use the [url=http://www.ncrunch.net/documentation/reference_project-configuration_additional-files-to-include]additional files to include[/url] configuration option. This would probably b…

  5. NCrunch does not honor CopyLocal settings in project file.

    Hi, Thanks for sharing this issue. NCrunch currently doesn't acknowledge the Private properties as assigned to reference elements in the build script - I'll make a note to include a future fix for this. I can't think of any workaround that will prevent NCrunch from removing these properties f…

  6. Testlocation with DeploymentItem inconsistent

    Hi Matt - If you're experiencing consistent behaviour in this situation, it's quite likely your experiencing a different problem. Make sure that you've made NCrunch aware of the files that need to be copied by adding them to the [url=http://www.ncrunch.net/documentation/reference_project-confi…

  7. NCrunch gets sluggish after a while while devenv.exe having high cpu usage.

    Something that may happen is that the closing of the windows takes a while to kick in, because the engine is already overloaded before this happens and it will take a while to register that the windows have been closed. Until then, the lagged processing will continue until it has cleared the backlo…

  8. Make NCrunch's NuGet package support Portable Class Library

    Thanks for reporting this one! I'll make sure it gets addressed with the compatibility improvements in V2. Cheers, Remco

  9. Is it possible to run each test in a separate process to prevent issues with mocked static methods?

    Do you notice any difference if you set up NCrunch in [url=http://www.ncrunch.net/documentation/troubleshooting_compatibility-mode]compatibility mode[/url]? This would help to narrow down if the issue is being caused by NCrunch's environment, or something with TypeMock Isolator.

  10. NuGet2.5 native assemblies

    It's interesting that NCrunch isn't picking up the native assemblies using its normal reference resolution. Is it that these assemblies are co-located with other files needed for them in order to run? A lower maintenance but more expensive (performance-wise) way to handle this would be to include …

  11. NCrunch gets sluggish after a while while devenv.exe having high cpu usage.

    Thanks - this narrows the issue down significantly! It looks as though the step in question is part of the mapping routine where NCrunch synchronises the data from the engine and prepares it for display in the editor window. This has already been identified as a performance issue in V1, but beca…

  12. Second line of multi-line statement reported as uncovered

    NCrunch works fairly low-level in its collection of code coverage information, which can sometimes create ambiguity around LINQ statements - there's some more information about the difference between physical and logical test coverage [url=http://www.ncrunch.net/documentation/troubleshooting_missing…

  13. Some way of locating test "under cursor" in test window

    Normally, the Hot-key combination "Ctrl+M, P" should pin the covering test to the Tests Window, while also setting focus on it. It was part of the intention of the pinned test feature that it could be used for just this reason. Unfortunately, after trying it with active tests shown in the list, it…

  14. NCrunch gets sluggish after a while while devenv.exe having high cpu usage.

    Hi, Thanks for sharing this issue. When NCrunch becomes unresponsive (and the CPU usage starts to stay high), do you notice any general slowdown in other activities in the IDE? For example, are you able to scroll around your source code, making changes, opening files, etc? If the IDE is stay…

  15. Is it possible to run each test in a separate process to prevent issues with mocked static methods?

    Hi, thanks for posting! NCrunch won't ever run tests concurrently within the same process, but it will re-use processes between execution runs. Traditional serial test runners don't do this, so not all tests have been engineered to consider it. Broadly, there are two ways to do what you're aski…

  16. Entity Framework Integration Tests - Cannot Drop Db, because it is currently in use

    Hi Dwaldo, Thanks for posting! I'm glad you've been enjoying NCrunch and I'm sure we can solve this problem. There was a user that posted with a very similar issue a while back - you may want to have a read: [url=http://forum.ncrunch.net/yaf_postst527_StructureMap-issue-AssemblyInitialize.aspx]…

  17. Terminate test runners without "resynchronize" ?

    Hi, State corruption from failed tests is a fairly common problem, although it is quite a difficult one for NCrunch itself to handle (as NCrunch cannot make safe assumptions about the workings of your source code). The first thing I would suggest is to try and find a way to solve this problem in…

  18. Intermittent build error with ANTLR 3

    Thanks for sharing the sample code. It took quite a bit of digging through this sample and the Antlr3 source code to finally figure this out. It seems that Antlr3 has been designed in the assumption that the process executed to host the build will only be used once for a single build, before bei…

  19. ExpectedException in mstest not being captured when it is marked as async Task.

    Hi Josh, Thanks for sharing this issue. After a quick test I've concluded that NCrunch's handling of the ExpectedException attribute within MSTest2012 doesn't work correctly with the new async behaviour. I've logged this down to be fixed in the next maintenance release. Meanwhile, I suggest wo…

  20. Intermittent build error with ANTLR 3

    Ok - so there is some difference in the NCrunch build environment that is causing this problem then. Try changing the [url=http://www.ncrunch.net/documentation/reference_project-configuration_build-process-cpu-architecture]Build process CPU architecture[/url] for this project to x64 to see if tha…