Bug 36352 - [JUnit] Support to generate a report
Summary: [JUnit] Support to generate a report
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 26557 38479 186433 (view as bug list)
Depends on: 41228
Blocks:
  Show dependency tree
 
Reported: 2003-04-10 10:39 EDT by Bouchet Stéphane CLA
Modified: 2008-04-07 21:19 EDT (History)
5 users (show)

See Also:


Attachments
fix (13.18 KB, patch)
2003-08-06 17:00 EDT, Sebastian Davids CLA
no flags Details | Diff
showing the JUnitView and the contents of the clipboard side-by-side (77.39 KB, image/jpeg)
2003-08-06 17:01 EDT, Sebastian Davids CLA
no flags Details
fix (13.63 KB, patch)
2003-08-06 18:37 EDT, Sebastian Davids CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***