This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The tree in the JUnit Test Result window should be a bit more detailed. I usually create a unit test for every class and a TestSuite for every package containing all unit tests of this package. Furthermore I have some more complete TestSuites that consist of a lot of package-TestSuites combined. Now when I run JUnit on one of the suites I get a tree with the class name of the TestSuite and all involved test method names as nodes. It would be much better if this tree would indeed be more treelike. E.g. a combined test, all packages tests as child of this and all classes as child of the package tests and finally the methods as childs of the tested classes - or whatever the actual hierarchy in a project might look like. It would look like the following: AllTestsTestSuite | +-- PackageTestSuite1 | +-- TestClass1 | +-- testMethod1 | +-- testMethod2 | +-- TestClass2 | +-- testMethod1 | +-- testMethod2 | +-- PackageTestSuite2 | +-- TestClass3 | +-- testMethod1 | +-- TestClass4 | +-- testMethod1 This would look much more like the classic JUnit Swing-based TestRunner and one would feel more at home with using JUnit in Netbeans. I think the JUnit TestResults window should look as much like the Swing-based TestRunner as possible. An - albeit not as good - alternative would be to include the class names of the TestCase-subclasses prior to the method names. Like: AllTests | +-- TestClass1.testMethod1 | +-- TextClass2.testMethod2
It is doable, I think. (Note that NetBeans runs JUnit tests via Ant).
This could be combined with issue #162847
This is how it looks like in latest build. Closing this one. Thank you for reporting