Currently, when I run Tests using 'right click'/(Test File|Debug File|Run Focused Test|Debug Focused Test) and I have @Ignored tests in my Junit Test the result view is quite confusing.
Eg. If I have one @Test method in my Junit test which is marked @Ignore'd then Netbeans would show the whole test as 'passed', but when I click on the green button to show which tests passed it wouldn't show me any tests and also the bar at the top is 'red' with '0.0' percent. Which is quite confusing. I can only find out why, if I go back to the test to see that it has been @Ignore'd
In my opinion it would be better
.) that the bar would be green since all tests 'passed', with 100%
.) and also show that there have been found '@Ignore'd tests. Maybe add a new Icon, which shows also the Ignored tests
Product Version = NetBeans IDE Dev (Build 201106041000)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.0-b11
..I was just creating new enhancement when I've found that similar issue is already here. It seems that we have no @Ignore annotation support at the moment in Netbeans (even in 7.1 if I didn't missed something), so it's still more enhancement than defect.
Just FYI for example in Eclipse it's done in a similar way as tomzi described. That means - ignored tests are counted as 'passed', but they are marked by some special flag to show user that he still has some ignored tests to implement/rewrite/whatever. And it would be a really good idea to do this inside a new icon for ignored tests.
*** This bug has been marked as a duplicate of bug 186276 ***