Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
NotImplementedException building one project
Hi, This is an exception thrown by a library that NCrunch uses to perform its instrumentation. You somehow seem to have discovered a primitive type or IL sequence that this library hasn't been designed to handle. Can you tell me a bit more about this project? Is it written in C#? Are there …
14 Mar 2013 21:03 UTC
-
Does Ncrunch support Shim scope
Hi, thanks for posting! Right now NCrunch doesn't yet support working with MS Fakes Shims, as these rely on a certain profiler to be loaded into the test environment. Support is [url=http://www.ncrunch.net/support/frameworks]currently planned for NCrunch Version 2[/url]. Cheers, Remco
14 Mar 2013 20:57 UTC
-
XBehave support
I believe so :) Cheers, Remco
13 Mar 2013 21:07 UTC
-
Tests fail due to NCrunch internal conditions
Nice work in figuring out what was happening. Running a parallel test runner on tests within an inherited codebase can often bring up obscure problems, and I'm glad you managed to find the root cause of the problem. It is particularly abnormal behaviour for a test to modify the config file of its …
13 Mar 2013 06:05 UTC
-
Content files not copied
Thanks Peter! Because of the way NCrunch's build optimisations work, the 'Copy referenced assemblies to workspace' setting is needed for any project to copy assemblies or content files from a referenced project. This is behaviour by design - I'll quickly explain why this is the case. Let's ju…
11 Mar 2013 21:11 UTC
-
Supplement the Solution Explorer
I find this idea particularly interesting because behind it there is a perspective of what automated tests should be, rather than what they actually are. By programming in any language, we're always bound by the constraints of this language. Learning to write automated tests in classes in separa…
10 Mar 2013 21:43 UTC
-
Stacktrace issues with code contracts on abstract methods
After running through this again and making some modifications to the code, this suddenly started happening for me. I'm not sure why it wasn't surfacing before - perhaps there is an intermittent element? Anyway, after reproducing the issue, I can confirm that this is being caused by NCrunch's in…
10 Mar 2013 21:35 UTC
-
Code coverage flakiness
Thanks for sharing the details about this. I've uncovered a mapping problem that can cause code coverage instability and code coverage loss in a similar way to what you describe. It occurs when an unopen code file is changed on disk before more work is done (and tests are run) using NCrunch in t…
10 Mar 2013 20:44 UTC
-
Code Coverage not respecting ExcludeFromCodeCoverage
Hi, I can't give any firm plans on when this will be added. It may be in the 1.45 release, although I recommend not holding out for it. For the time being, try using [url=http://www.ncrunch.net/documentation/concepts_code-coverage-suppression]code coverage suppression[/url] instead. Cheers…
10 Mar 2013 08:08 UTC
-
Stacktrace issues with code contracts on abstract methods
Thanks for sending through the solution. I've tested against it, but even when using the same version of NCrunch on this solution, the stacktrace still shows the correct references for me. This suggests that the problem is being triggered by something in your environment. Do you have access to …
10 Mar 2013 08:06 UTC
-
Supplement the Solution Explorer
Hi John, Thanks for posting! I'm glad you're enjoying NCrunch! This is an interesting request and I'm wondering if I could drill a bit deeper into your use cases to find out what you are trying to achieve. My first thought is that if you find the need to use the Tests Window to create test…
09 Mar 2013 22:34 UTC
-
Stacktrace issues with code contracts on abstract methods
Hi, thanks for posting! There's quite a lot going on here. I've tried to build a sample solution to reproduce the issue you've described above, although unfortunately the stack traces seem to be correct for me. Do you have an example solution I could get hold of? I'd like to look at this issue…
09 Mar 2013 22:26 UTC
-
Ncrunch Build Server integration
Hi Tom, Having a system in the CI that behaves like NCrunch (with workspacing etc) to validate the work of other team members is something I admit I hadn't really considered, but I can definitely see much value in. I'll have a bit of a think about way that this could be met with the future devel…
08 Mar 2013 22:46 UTC
-
Tests fail due to NCrunch internal conditions
Hi, thanks for posting! My guess would be that this problem is being caused by tests changing files at runtime (i.e. the .config file?). Something that may be worth trying is to run a build of your solution, then go to the bin\Debug directory of your test project(s), and mark ALL the output file…
08 Mar 2013 10:51 UTC
-
Run Tests As Administrator
Hi Rodney - Thanks for the suggestion. UAC is often a problem during development. NCrunch itself is developed on a system with UAC enabled for just this reason - stuff tends to go haywire unexpectedly when it hasn't been fully tested with the extra security constraints. Unfortunately setti…
08 Mar 2013 02:17 UTC
-
Support for Localized Language
Thanks for the suggestion. Yes - English New Zealand would likely be the locale used by the current NCrunch package, as this is the language on the machine that is building it. Is the current locale causing any issues for you? Or is it that you'd like to see NCrunch represented in multiple langua…
07 Mar 2013 20:05 UTC
-
NCrunch provides no feedback on ExpectedException test failures
Hi, Thanks for sharing this issue. I've confirmed that the MSTest adapter isn't showing messages when failing with an expectedexception, and it definitely should be. I'll see that this gets fixed. Cheers, Remco
07 Mar 2013 20:03 UTC
-
Support for Visual Studio's Profiler
Hi Rodney, Thanks for the suggestion! As NCrunch doesn't have any level of integration with the performance analysis features of Visual Studio, this would be quite a challenging feature to implement in the way that you currently use it. I'm wondering if you could share some more details about…
07 Mar 2013 07:32 UTC
-
Bug using Machine.Specifications
Hi Jason, Thanks for taking the time to report this. It looks like a hole in the MSpec name parsing. I'll see that it gets fixed. Cheers, Remco
06 Mar 2013 20:28 UTC
-
Content files not copied
Do the tests stay green now even if you restart the IDE? I'm wondering if perhaps NCrunch failed to correctly detect the content files that needed to be copied because MSBuild had already copied them with a prior build. I'll make a note to review how some of this code works to see if I can find an…
05 Mar 2013 21:57 UTC