Remco;7445 wrote:Cjdawson;7444 wrote:
How exactly is this done? I cannot find any of the settings mentioned on the linked page.
I was looking in NCrunch --> configuration. Is there somewhere else that isn't obvious to locate?
Yes - all of these settings are located under the NCrunch configuration. Most of them are project-level configuration settings (so you'll need to multi select your projects to apply the settings to all of them).
I must be really stupid, as I cannot see any of the options that are listed on the page. The instructions are not clear to me at all. In addition, I think the problem is somewhere in the way that NCrunch is running the tests. Sometimes whey work, sometimes they don't, and there's no reason for the test to fail - it is literally a case that I Open up NCrunch --> Tests, then press the Run all tests button and they will run - sometimes with a test fail, then I click the button again, and a different test will fail, then when I click again the tests might pass. There is no consistency to it, and objects are all created.
When I runt the tests using the build in Test runner (MS Test, I believe) they pass every time. When I run the tests with resharper, again they pass every time. At the moment, I'm beginning to think that I'd be better off uninstalling NCrunch as it appears to be inconsistent.
I have spent the morning rewriting all the tests so that moq isn't required, that made no difference, and resulted in inferior tests anyway, so I've revested back to using moq.
I'm happy to share the source code with you to help with debugging NCrunch - I really love the nice friendly OK on the Risk/Progress window. I love how it keeps updated when I'm adding code, it makes me happy to see the nice big green friendly OK.
I'm happy to share the source code with you in order to help diagnose the inconsistency.