Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. NUnit Repeat Attribute

    Unfortunately not. The RepeatAttribute and its behaviour are fully under the control of NUnit, which creates an artificial loop around the test code and reports the entire repeated process as a single test call. I would recommend implementing the repeated logic manually using a for loop, and rec…

  2. VS2012 - Beginning of test not marked where a test is failing, coverage markers incorrect

    NCrunch maps code coverage information separate from exception lines. Although in normal situations they should align nicely, sometimes there are things that can cause them to go askew. A couple of the things that I'm aware of are: - If you have code executing in a different application domain …

  3. NCrunch Execution Flags

    There are [url=http://www.ncrunch.net/documentation/troubleshooting_ncrunch-specific-overrides]several ways you can handle this[/url]. Generally I would recommend the '#if NCRUNCH' override in this situation.

  4. No coverage indicators in latest release?

    Hi, I've identified the cause of this issue. It seems that the 1.44 had an installer issue that was preventing the package from being fully loaded, which prevented the adornments from being shown. The symptom of the problem is identical to an setup issue that affects roughly 0.1% of all install…

  5. No coverage indicators in latest release?

    Hi, thanks for posting! I received a bug report detailing the same issue. Was this report from you? The problem is caused by an adornment layer bug in Visual Studio that sometimes surfaces while upgrading NCrunch. Essentially, it's an installation/setup problem. Uninstalling v1.43 and upgra…

  6. Doesnt run [Theory] tests

    From the paths you've described above, I have a feeling that the TestSpecs.xls file is a resource that belongs to an assembly being referenced by the test project (rather than being a resource owned by the test project itself), is this the case? NCrunch will separate components from each other in…

  7. System.InvalidProgramException : Common Language Runtime detected an invalid program.

    Hi, This is a result of windows update KB2742616 which changes the behaviour of the JIT while processing .NET 2.0-3.5 assemblies. The change introduces a functional constraint that clashes with the way that NCrunch instruments for performance analysis. You can work around the issue in one of …

  8. Doesnt run [Theory] tests

    Hi, The correct solution when using inherited Xunit attributes for theories is to set the framework utilisation type to 'Dynamic Analysis'. Unfortunately it's been found that due to the current reliance on Gallio for Xunit and the various frameworks/abstractions involved, it doesn't look as thou…

  9. Renaming of the project leads to error

    Thanks for reporting this. Clicking the reset button should solve the issue. I'll take a look and will see what I can do.

  10. Code coverage for test classes

    I think this might be what you're after - [url=http://www.ncrunch.net/documentation/concepts_code-coverage-suppression]code coverage suppression[/url].

  11. NCrunch not showing correct color "balls" in the gutter

    Hi Larsw, You are absolutely correct. This is caused by the limited resolution in which NCrunch captures the code coverage data during execution - it basically handles it on a line-by-line basis rather than statement-by-statement basis. There have been a few suggestions on this forum around h…

  12. Build is happening too often

    I suspect something that may be having an impact is the amount of I/O activity being caused by the NCrunch builds. From what you've described, you should have ample CPU resources to be able to run the builds in parallel. It may be that if you are running tests that are quite I/O heavy (or make use…

  13. Build is happening too often

    Hi, thanks for posting! Right now NCrunch doesn't really 'know' anything about the source code its compiling, so it isn't able to make intelligent decisions about whether a build should or should not be run based on a particular change being made. There are plans in V2 for features that I hope s…

  14. C++ support

    Hi, thanks for posting! I can see how C++ might be a challenging search term for this forum :) Unfortunately, C++ is a bit of a difficult area to play in for NCrunch, as it requires new levels of compatibility and integration about the instrumentation and build process - in addition to new tes…

  15. System.UnauthorizedAccessException

    Hi, thanks for sharing this issue. Although the symptom is the same, my suspicion is that the issue you're experiencing is being caused by the above file being locked by a process - rather than a read-only flag. Assuming it happens consistently, are you able to check whether terminating any ru…

  16. Encoding problem in 1.42.0.12

    I believe the problem is related to the characters being displayed. Certain localised characters (such as those used in a stack trace) cause the control to start behaving erratically. Interestingly, I haven't been able to reproduce the problem on Windows 8 - so I'm wondering if it might be platfor…

  17. Pricing

    Hi Alex - Could you please get in touch via the contact form on this website? I'd like to learn a bit more about your situation. Cheers, Remco

  18. NCrunch not showing correct color "balls" in the gutter

    Great to hear! Thanks for letting me know :)

  19. DLLs Copied to project(s) root directory

    I've since done more looking into this issue. It's been proving extremely difficult to track down, because it occurs in very few environments and when it does occur, it is always intermittent. The issue itself seems to be tied to overlapping builds between Visual Studio and NCrunch. Somehow the…

  20. Visualise coverage per test

    Thanks for the feedback. Given that lines can be covered by potentially huge numbers of tests (i.e. 1000s), I'm not sure if I can cleanly implement such a feature, but I'll have a think about your use case and will see what I can come up with!