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 59297 - Add a special window for displaying JUnit results
Summary: Add a special window for displaying JUnit results
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2005-05-26 16:24 UTC by Marian Petras
Modified: 2005-09-05 10:04 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 Marian Petras 2005-05-26 16:24:26 UTC
According to the UI specification for NB 4.2
(http://ui.netbeans.org/docs/ui/junits/promo_f.html), the JUnit module should
display JUnit results in a special window, instead of displaying the raw output
generated by Ant.
Comment 1 Marian Petras 2005-05-26 16:24:45 UTC
Accepted.
Comment 2 Marian Petras 2005-05-26 16:30:31 UTC
I implemented an initial (alpha) version of the JUnit output window. Please note
that neither the current implementation nor the current UI specification of the
window are final.

Added/modified files:

    junit/nbproject/:
              project.xml   (1.5)
    junit/src/META-INF/services/:
              org.apache.tools.ant.module.spi.AntLogger   (1.1 - initial revision)
    junit/src/org/netbeans/modules/junit/output/:
              Bundle.properties   (1.1 - initial revision)
              JUnitAntLogger.java   (1.1 - initial revision)
              JUnitOutputReader.java   (1.1 - initial revision)
              RegexpUtils.java   (1.1 - initial revision)
              Report.java   (1.1 - initial revision)
              ResultView.java   (1.1 - initial revision)
              XmlOutputParser.java   (1.1 - initial revision)
    src/org/netbeans/modules/junit/resources/:
              layer.xml   (1.30)
    test/unit/src/org/netbeans/modules/junit/output/:
              RegexpUtilsTest.java   (1.1 - initial revision)
              XmlOutputParserTest.java   (1.1 - initial revision)

Diffs:
http://junit.netbeans.org/source/browse/junit/nbproject/project.xml?r1=1.4&r2=1.5&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/META-INF/services/org.apache.tools.ant.module.spi.AntLogger?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Bundle.properties?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitAntLogger.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/RegexpUtils.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Report.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultView.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/XmlOutputParser.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/resources/layer.xml?r1=1.29&r2=1.30&diff_format=u
http://junit.netbeans.org/source/browse/junit/test/unit/src/org/netbeans/modules/junit/output/RegexpUtilsTest.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/test/unit/src/org/netbeans/modules/junit/output/XmlOutputParserTest.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Comment 3 Marian Petras 2005-05-27 07:11:36 UTC
I forgot to commit the following files. They are committed now.

    junit/src/org/netbeans/modules/junit/output/:
              test-results.settings   (1.1 - initial revision)
              test-results.wstcref   (1.1 - initial revision)

Diffs:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/test-results.settings?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/test-results.wstcref?rev=1.1&content-type=text/vnd.viewcvs-markup
Comment 4 Marian Petras 2005-05-27 10:59:26 UTC
Note: The failure to commit the two files caused an exception at startup which
was reported as bug #59317 ("Exception in log file during the startup"). Now
that the files are committed, I marked the bug as fixed.
Comment 5 Marian Petras 2005-08-11 10:24:30 UTC
I replaced the current temporary solution (displaying JUnit report in the form
of HTML document) with the final one - the results are displayed in a tree.

Removed files:
     junit/src/org/netbeans/modules/junit/output/:
                                      HTMLView.java
                                      test-results.settings
                                      test-results.wstcref
Added files:
     junit/src/org/netbeans/modules/junit/output/:
                                      CallstackFrameNode.java
                                      Manager.java
                                      MultiviewPanel.java
                                      ReportNode.java
                                      ReportNodeChildren.java
                                      ResultPanelOutput.java
                                      ResultPanelTree.java
                                      ResultTreeView.java
                                      ResultWindow.java
                                      TestMethodNode.java
                                      TestMethodNodeChildren.java
                                      TestcaseNode.java
                                      TestcaseNodeChildren.java
                                      junit-test-results.settings
                                      junit-test-results.wstcref
     junit/src/org/netbeans/modules/junit/output/res/:
                                      class.gif
                                      empty.gif
                                      filter.gif
                                      method.gif
Modified files:
     junit/manifest.mf
     junit/src/org/netbeans/modules/junit/resources/layer.xml
     junit/src/org/netbeans/modules/junit/output/:
                                      Bundle.properties
                                      JUnitAntLogger.java
                                      JUnitOutputReader.java
                                      RegexpUtils.java
                                      Report.java
                                      ResultView.java

Diffs:
http://junit.netbeans.org/source/browse/junit/manifest.mf?r1=1.39&r2=1.40&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Bundle.properties?r1=1.2&r2=1.3&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/CallstackFrameNode.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitAntLogger.java?r1=1.4&r2=1.5&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java?r1=1.4&r2=1.5&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Manager.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/MultiviewPanel.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/RegexpUtils.java?r1=1.4&r2=1.5&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Report.java?r1=1.3&r2=1.4&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ReportNode.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ReportNodeChildren.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultPanelOutput.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultPanelTree.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultTreeView.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultView.java?r1=1.9&r2=1.10&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/ResultWindow.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/TestMethodNode.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/TestMethodNodeChildren.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/TestcaseNode.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/TestcaseNodeChildren.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/junit-test-results.settings?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/junit-test-results.wstcref?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/res/class.gif?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/res/empty.gif?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/res/filter.gif?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/res/method.gif?rev=1.1&content-type=text/vnd.viewcvs-markup
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/resources/layer.xml?r1=1.32&r2=1.33&diff_format=u