Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » <junitreport/> with Eclipse Test Framework?
<junitreport/> with Eclipse Test Framework? [message #99312] Tue, 29 May 2007 19:18 Go to next message
Eclipse UserFriend
Originally posted by: austimkelly.gmail.com

Hi - Is there any way to get a nicely formatted HTML report like you get
from the ant <junitreport/> task using the eclipse test framework?

Currently I'm running test suites as defined by "The Eclipse Test
Framework" document. (e.g.
http://archive.eclipse.org/eclipse/downloads/drops/R-3.0.2-2 00503110845/testframework.html)

I tried to use the output from the testsuite in an ant task like so:
----------
<target name="reports" description="Generates framed JUnit HTML
report">
<junitreport tofile="resultsAggregate.xml"
todir="${results}/html_frames/">
<!-- junitreport collects individual xml files generated by
the JUnit task using the nested "FileSet" element -->
<fileset dir="${results}/xml">
<include name="${report}_${os}.xml"/>
</fileset>
<report format="frames" todir="${results}/html_frames/"/>
</junitreport>
</target>
----------
Except I get this error:

***
[junitreport] the file <file.xml> is not a valid XML document.
***

Generating the HTML from JUNIT.XLS works OK but the format of the report
isn't too helpful.

Can someone point me to a better way to convert the output of my test
suite results to something more useful like that of a <junitreport/>?

Thanks,
Tim
Re: <junitreport/> with Eclipse Test Framework? [message #99353 is a reply to message #99312] Wed, 30 May 2007 11:15 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Tim,
The Eclipse Test Framework is use to test the Eclipse Platform and is
not part of the Test and Performance Tools Platform. Please post your
question to the Eclipse Platform news group.

Paul
"Tim" <austimkelly@gmail.com> wrote in message
news:9594466c535f9ab4ba92c2699ee32656$1@www.eclipse.org...
> Hi - Is there any way to get a nicely formatted HTML report like you get
> from the ant <junitreport/> task using the eclipse test framework?
>
> Currently I'm running test suites as defined by "The Eclipse Test
> Framework" document. (e.g.
> http://archive.eclipse.org/eclipse/downloads/drops/R-3.0.2-2 00503110845/testframework.html)
>
> I tried to use the output from the testsuite in an ant task like so:
> ----------
> <target name="reports" description="Generates framed JUnit HTML
> report">
> <junitreport tofile="resultsAggregate.xml"
> todir="${results}/html_frames/">
> <!-- junitreport collects individual xml files generated by
> the JUnit task using the nested "FileSet" element -->
> <fileset dir="${results}/xml">
> <include name="${report}_${os}.xml"/>
> </fileset>
> <report format="frames" todir="${results}/html_frames/"/>
> </junitreport>
> </target>
> ----------
> Except I get this error:
>
> ***
> [junitreport] the file <file.xml> is not a valid XML document.
> ***
>
> Generating the HTML from JUNIT.XLS works OK but the format of the report
> isn't too helpful.
>
> Can someone point me to a better way to convert the output of my test
> suite results to something more useful like that of a <junitreport/>?
>
> Thanks,
> Tim
>
>
>
>
Re: <junitreport/> with Eclipse Test Framework? [message #99465 is a reply to message #99353] Wed, 30 May 2007 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: austimkelly.gmail.com

Thanks Paul for letting me know. I've cross posted there.

Tim

Paul Slauenwhite wrote:

> Hi Tim,
> The Eclipse Test Framework is use to test the Eclipse Platform and is
> not part of the Test and Performance Tools Platform. Please post your
> question to the Eclipse Platform news group.

> Paul
Previous Topic:getDeployment in beforelaunch() function
Next Topic:How to use TPTP API
Goto Forum:
  


Current Time: Tue Apr 16 19:23:48 GMT 2024

Powered by FUDForum. Page generated in 1.74617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top