Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Code Coverage in Separate Solution

    Hi Ed, Thanks for posting! Yes - you will need to move your test projects into your main solution in order to see the code coverage information. NCrunch treats loaded and referenced projects very differently to referenced assemblies. If your code is referencing a DLL outside the solution, …

  2. Possible issue with F#

    Thanks for the sample solution. Running this test produces the exact same results between NCrunch and vanilla NUnit, so I'm afraid there's nothing I can do to help here. It will be interesting to see the response to your stackoverflow question.

  3. Possible issue with F#

    Hi, thanks for posting. I'm not aware of anything in NCrunch that would specifically cause this problem. It's possible that NCrunch is surfacing the issue indirectly, or that you've discovered something unusual between the multiple toolsets in use here (NCrunch/MSBuild/FSharp/NUnit). I think …

  4. XUnit 2 tests are not picked up by NCrunch.

    Hi, thanks for posting. Xunit v2 is in a state of flux at the moment, with three beta releases available and another one a little way out. Each of these releases contains breaking changes, which makes it hard to ensure that the products continue to work together. You may want to try a pre-r…

  5. Setting up Distributed Processing

    Hi, thanks for posting! The configuration needed in your situation will vary greatly depending upon the arrangement of the grid and the solution being tested. Often this will require some trial and error to get right, and you may need to do some monitoring of the resources on the machines involv…

  6. CodeContract: Rewrite aborted due to metadata errors

    If you set the 'Log Verbosity' global configuration option to 'Detailed', NCrunch will allow you to inspect the detailed MSBuild output inside the processing queue. Simply find the project that has failed to build inside the queue, and you should see a full dump of the build output below it. I'd…

  7. CodeContract: Rewrite aborted due to metadata errors

    Thanks for sharing the sample project. I don't think there's any way I could have properly analysed this problem without it. Deeply buried in the MSBuild output was the following: ccrewrite : error : Rewrite aborted due to metadata errors. Check output window Assembly reference not resolv…

  8. CodeContract: Rewrite aborted due to metadata errors

    Hi, thanks for posting. The first thing that jumps into my head is that NCrunch's instrumentation may be creating an IL arrangement that Code Contracts is unable to process. Most of the testing of NCrunch's instrumentation has naturally been performed directly using the JIT, which uses a diffe…

  9. reference problems with legacy project

    Wow, nice work in figuring this out. I'm at a bit of a loss to explain much of this without having the exact same code to experiment with .. but I have to say that MSBuild isn't behaving in the same way as I'd expect it to. C# generally doesn't experience trouble with classes being under the sam…

  10. When there are many dependent projects, tests can end up taking a very long time to be scheduled.

    Unfortunately NCrunch does need to rebuild dependencies when a public interface changes. This is to avoid obscure problems such as 'Method not found' exceptions that can otherwise be thrown during test execution. Note that NCrunch won't rebuild projects that do not have a direct or indirect depe…

  11. reference problems with legacy project

    Hi, thanks for sharing this issue and for posting your build XML. This really helps with analysing the problem. I've verified that NCrunch isn't copying over the 'SpecificVersion' tag into the generated project file in the workspace. This is probably by design, as NCrunch already considers this…

  12. When there are many dependent projects, tests can end up taking a very long time to be scheduled.

    NCrunch will rebuild all dependencies of a project if they have the 'Copy referenced assemblies to workspace' setting enabled, or if you make a change to the project that impacts a public interface (i.e. you change the signature of a public method). In all other situations, NCrunch will do exactl…

  13. Build failure with InvalidCastException.

    Hi, thanks for sharing this issue. It looks like the type shown above (AdjustingSensingHeadPlugin.BlockFactory) contains some kind of IL structure that NCrunch's instrumentation can't handle. It's been a while since I've seen this happen - there must be something quite unusual about this class. …

  14. Distributed processing:incompatible versions

    Hi, thanks for posting. The version incompatibility NCrunch is reporting is between the version that you're running inside Visual Studio, and the version of NCrunch that is running on the grid node. If you're seeing this message and you're pretty sure that the server is already running v2.7, c…

  15. RavenDB: System.InvalidProgramException : Common Language Runtime detected an invalid program

    Thanks for checking this out. I think you're analysis is correct in that TypeMock's profiler is kicking up the issue when working with Raven DB. Their support team is pretty responsive to these sorts of issues. Would you be interested in raising a support ticket with them?

  16. GUI bug if test argument ToString methods return multiline strings

    Oops! You're right, that does look wrong. Thanks for reporting this. I'll see that it gets fixed.

  17. NCrunch spirals out of control

    Is there a specific project that it seems to stall on while building? Have you noticed this problem with any other projects/solutions?

  18. NCrunch spirals out of control

    Hi, thanks for getting in touch with this problem. Can you describe the nature of the tests you are executing with NCrunch? Do you have any integration tests that interact heavily with the file system or processes outside the test domain? (i.e. a database). If you can, I recommend trying to ge…

  19. Metric not calculate tests coverage satelite dll by tests from main program

    Welcome! :)

  20. Opposite of Isolated

    Yes - sorry. I think the name of that config setting changed at some stage or another. 20 should be enough. One way you can test to see whether the setting is optimal is by doing the following: 1. Turn on the [url=http://www.ncrunch.net/documentation/reference_global-configuration_terminate-…