Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
TestCaseSource won't mark the source data as covered.
Hi, thanks for posting! This is behaviour by design. The _data property is queried outside the scope of the test, as NUnit uses this property in order to analyse and identify the test (which is a step that occurs prior to any execution). If this is messing with your coverage metrics and making …
15 Jan 2013 21:38 UTC
-
Projects fail to build with no explanation
Hi, Thanks for sharing this issue. I suspect that the structure of this project may somehow be different to that of projects that NCrunch was designed to run. I'm wondering if you can help narrow the problem down by answering the following questions: - Can you tell me a bit more about the pr…
15 Jan 2013 21:36 UTC
-
How do I tell NCrunch to ignore a project?
I'm wondering if you'd be able to check for me whether NCrunch has correctly detected the category you've assigned. You can do this by right clicking the column headers in the Tests Window, selecting 'Field Chooser' and then dragging the 'Categories' field onto the window. If you look for the te…
15 Jan 2013 21:22 UTC
-
VS2012 - Beginning of test not marked where a test is failing, coverage markers incorrect
Thanks! I think this was probably the result of a known mapping issue that's been floating around lately. It appears more or less randomly, infrequently and to date I haven't been able to reproduce it. Usually a reset of the engine will solve the problem. Thanks for taking the time to report it.
15 Jan 2013 21:21 UTC
-
Problem with Additional Files to Include
Hi, thanks for posting! Generally I would recommend against using the Additional Files To Include setting to reference files that belong to an adjacent project. Referencing files across projects breaks [url=http://www.ncrunch.net/documentation/considerations-and-constraints_project-atomicity]pro…
14 Jan 2013 22:56 UTC
-
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…
14 Jan 2013 22:40 UTC
-
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 …
14 Jan 2013 22:37 UTC
-
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.
14 Jan 2013 22:32 UTC
-
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…
14 Jan 2013 22:23 UTC
-
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…
14 Jan 2013 10:21 UTC
-
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…
14 Jan 2013 07:50 UTC
-
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 …
14 Jan 2013 05:32 UTC
-
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…
14 Jan 2013 02:51 UTC
-
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.
11 Jan 2013 23:21 UTC
-
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 Jan 2013 11:27 UTC
-
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…
11 Jan 2013 08:53 UTC
-
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…
11 Jan 2013 08:49 UTC
-
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…
10 Jan 2013 21:33 UTC
-
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…
08 Jan 2013 06:16 UTC
-
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…
07 Jan 2013 21:31 UTC