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.

Bug 73379 - JUnit Test Result window should provide more detailed informations
Summary: JUnit Test Result window should provide more detailed informations
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2006-03-08 13:19 UTC by rittmey
Modified: 2013-09-04 13:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rittmey 2006-03-08 13:19:19 UTC
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
Comment 1 Marian Petras 2006-03-08 13:31:40 UTC
It is doable, I think. (Note that NetBeans runs JUnit tests via Ant).
Comment 2 mjr_1974 2009-04-16 15:12:00 UTC
This could be combined with issue #162847
Comment 3 Theofanis Oikonomou 2013-09-04 13:59:23 UTC
This is how it looks like in latest build. Closing this one. Thank you for reporting