Remco;770 wrote:
Thanks for providing the links to your working solution. This was enormously helpful for me in making some critical changes to the way the NUnit integration works for NCrunch 1.36b.
Well if I'm going to ask you to make some changes, the least I can do is a bit of investigation :)
Remco;770 wrote:
1.36b (just released) allows you to consume NUnit using dynamic analysis instead of static analysis. This adds much closer support for many of the NUnit 2.5 features (such as TestCaseSource), and I believe it should resolve any problems you've experienced in this area.
I've just removed the comments in the code saying "uncomment this code when NCrunch is fixed" - and it works brilliantly, with nice descriptive test names. Awesome work!
Remco;770 wrote:
I did notice in the NodaTime solution that you have many thousands of tests being generated dynamically from TestCaseSource. This doesn't cause any functional problems for NCrunch, but it does create a lot of work, as the new dynamic analysis allows every test case to be tracked individually with its own code coverage results. You may be able to reduce your test cycle times considerably by grouping some of the test cases together so that they don't need to be tracked separately.
Can you give any more details about what sort of grouping you mean? It's actually pretty handy to have different coverage for the different paths in some cases, as the different cultures (which is a large part of the "many tests") go through different paths.
Remco;770 wrote:
Anyway, I'm eager to hear how well this works for you.
Fabulously, basically :) I happened to give a talk last Thursday where I gave a quick demo of NCrunch before moving on to the main topic of C# 5. Seemed to go down well :)
Small feature request: would the number of passing/failing/ignored tests be possible, either in the Risk/Progress chart or in the top line of the NCrunch Tests window? Let me know if you'd like this in a separate post for tracking purposes.