Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

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

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

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

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

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

  6. Intermittent build error with ANTLR 3

    Hi, thanks for sharing this issue. When working with a 3rd party framework that performs extra build steps, the first things I usually suggest are checking for additional files to include (which you've done), and to try enabling the 'Copy referenced assemblies to output' project-level configurati…

  7. Unit testing with classes from Roslyn.Services namespace results in a SecurityException

    It looks as though this exception is actually an x64/x86 exception in disguise. After setting the 'Use CPU Architecture' NCrunch project-level configuration option to 'x64' for all the projects in the solution, the problem went away. NCrunch normally defaults to x86 when projects are built for…

  8. Testlocation with DeploymentItem inconsistent

    Thanks! I'll take a look and see if I can figure it out. Perhaps if I shake it in the right way, I can reproduce the issue :) Cheers, Remco

  9. Testlocation with DeploymentItem inconsistent

    Hi, thanks for sharing this issue. The working directory of the testing process will definitely vary according to the workspace being used, but the intended behaviour is such that it should be consistent in regards to the TestResults directory or bin\out - so this definitely looks like a defect. …

  10. TF400030: The local data store is currently in use by another operation. Please wait and then try y

    Hi Chris - I haven't heard this one reported before, and there are many NCrunch users running TFS daily. Is there any indication of which file is being locked? Do you have any tests that may be accessing this file? Cheers, Remco

  11. System.Security.VerificationException: Operation could destabilize the runtime

    Hi Atreyu, Thanks for posting! The easiest way to handle this is to simply alter the VB project's .vbproj file and make use of NCrunch's conditional compilation. Inside the default/debug configuration property group, add the following line: <DefineConstants Condition="$(NCRUNCH) == '1'…

  12. NCrunch.Framework.ExclusivelyUses Inheritance

    The declaration for ExclusivelyUsesAttribute doesn't use the AttributeUsage marker for inheritance, but NCrunch does search the entire inheritance structure for it ... so in practice, yes. A test superclass marked with this attribute should have it automatically specified for all subclasses.

  13. xxx.Wait causes intermittent timeout exception

    Hi, thanks for posting! From the description shown, it looks like NCrunch or Xunit is enforcing a timeout of 1000 on your tests. Because the tests are asynchronous and involve waiting between threads, it's possible that while your system is under load, the test takes longer than 1000ms to execut…

  14. Unit testing with classes from Roslyn.Services namespace results in a SecurityException

    Thanks Akim. I've had a good go at trying to resolve and work around this problem using the sample solution you provided. I'm wondering if you can share some more information on the context in which you are working - is this for a critical application where NCrunch simply must work, or for a test …

  15. How do I include generated source code?

    Hi, thanks for posting! The solution to this will depend upon the timing and manner of the generation. How are these files generated? Is this done via an automated test, or special build step? Is there a 3rd party framework involved? Cheers, Remco

  16. Unit testing with classes from Roslyn.Services namespace results in a SecurityException

    Hi Akim - I believe this is related to the same issue described in [url=http://www.ncrunch.net/documentation/troubleshooting_test-and-runtime-related-issues]this troubleshooting page[/url] (the security verification exception). Do the suggestions on this page solve the problem?

  17. Display execution time besides markers when a test runs too slow

    Great idea! Thanks. It might be tough to find physical space for this, but I can see the benefit.

  18. NUnit version

    It is theoretically possible to replace the NUnit binaries that NCrunch uses (which can be found under Program Files (x86)\Microsoft Visual Studio 1X.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2010), although the results of this will depend entirely upon how compatible the ver…

  19. Cumulative Processing Time

    Excellent, now I get it! So basically we're talking about introducing a value held against each of the projects that is the sum of the time of all builds executed on this project since the engine was last reset. That should be easy, and useful! I'll see what I can do. Cheers, Remco

  20. Cumulative Processing Time

    Right. Am I correct in my understanding that the problems you are trying to solve are: As a user, given a processing queue full of tests and builds, when a change is made to the codebase, then I want to know how long I need to wait for a specific task to be processed. As a user, given a process…