Show Visual Fail/Pass Indication next to each NUnit [TestCase] Attribute
When using NUnit's TestCase attribute, it'd be nice if NCrunch could display the status of each TestCase with the visual dot next to the actual TestCase attribute.
-
This would be a neat feature, but unfortunately the technology has constraints that will likely prevent this from ever happening.
The .NET compilers don't emit debug information for attribute declarations inside the PDB file. NCrunch is reliant on this debug information to identify physical lines of code. This is why we also don't have markers placed next to method and type signatures - the PDB just doesn't tell us where these things are. It's possible to find this code using other means (such as source parsing or Roslyn integration), but these are all compiler and language specific and very expensive to implement.
From NUnit V3, NCrunch also has no direct knowledge of TestCase attribute declarations. These are interpreted by the NUnit framework and wrapped up into a tidy API that NCrunch is integrated with. So there would be no way to know about them without stepping around some very important abstractions that would greatly hurt NCrunch's forwards compatibility with future NUnit releases.
-
Duncan commented
This would be ideal, although I can see it being tricky to do since multiple could appear on the same line.
Any kind of indication (text colour, underline, etc) would be nice though since if you have a lot the indication that one is failing is not very user friendly (right now I have 100 [TestCase(...)] attributes on this test and 1 isn't working :(