Bug 36352

Summary: [JUnit] Support to generate a report
Product: [Eclipse Project] JDT Reporter: Bouchet Stéphane <sbouchet>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, borisl, daniel_megert, etiennel, mirko
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 41228    
Bug Blocks:    
Attachments:
Description Flags
fix
none
showing the JUnitView and the contents of the clipboard side-by-side
none
fix none

Description Bouchet Stéphane CLA 2003-04-10 10:39:19 EDT
Hi,

This is a simple request for JUnit, a great tool for java programmers :)

I use Junit for testing java apps in Eclipse. But when i want to generate
report, i must use Ant ??? 

It would be appreciable to generate the JUnitReport from the JUnit view. 
For exemple, right clic and "generate report" could be possible ?

Regards,

Stéphane
Comment 1 Dirk Baeumer CLA 2003-04-10 11:28:51 EDT
Seem reasonable but depends on 2.2 planning.
Comment 2 Erich Gamma CLA 2003-04-10 11:31:29 EDT
adjusted title and reopened bug.
Comment 3 Sebastian Davids CLA 2003-08-06 17:00:23 EDT
Created attachment 5660 [details]
fix

Implementation notes:

@@ CopyHierachyAction @@

Modelled after CopyTraceAction.

@@ HierarchyRunView @@

The menu entry "Copy Hierachy" will only be shown if the tests have been run;
it is not selection dependent.

The creation of the output string is done in an inner class
"PlainTextFormatter".

The class is written so that it can be easily subclassed to create a different
kind of ouput; the writeXXX methods would have to be overridden.
Comment 4 Sebastian Davids CLA 2003-08-06 17:01:20 EDT
Created attachment 5661 [details]
showing the JUnitView and the contents of the clipboard side-by-side
Comment 5 Sebastian Davids CLA 2003-08-06 18:37:29 EDT
Created attachment 5664 [details]
fix

The fix above did not handle Test Suites correctly.
Comment 6 Sebastian Davids CLA 2003-09-26 09:40:08 EDT
dup of bug 36352
Comment 7 Sebastian Davids CLA 2003-09-26 09:42:30 EDT
cut'n'paste erro :/

Ment bug 7838
Comment 8 Boris Litvak CLA 2005-05-27 04:09:32 EDT
*** Bug 26557 has been marked as a duplicate of this bug. ***
Comment 9 Erich Gamma CLA 2006-05-24 05:48:22 EDT
Moving back to the JDT/UI inbox
Comment 10 Martin Aeschlimann CLA 2006-05-24 16:23:55 EDT
*** Bug 38479 has been marked as a duplicate of this bug. ***
Comment 11 Etienne Lacombe CLA 2007-02-03 22:51:24 EST
Any update on this? It seems fairly simple to run JUnit with the XML Formatter and then run the XSLT to transform it into an HTML report...

Seems to me this could be as part of the JUnit Runner rather than having to do it in ANT.
Comment 12 Etienne Lacombe CLA 2007-04-15 02:54:33 EDT
I noticed that one can now export the XML results. Is there any plan to add export to HTML, thus automatically running the XSLT task before export or something?
Comment 13 Etienne Lacombe CLA 2007-05-11 20:56:13 EDT
*** Bug 186433 has been marked as a duplicate of this bug. ***