See: Description
Class | Description |
---|---|
ImageHandler |
Understands base64 encoding and decoding of an image.
|
JUnitReportTask |
Aggregates all <junit> XML formatter test suite data under a specific directory and transforms the results via
XSLT.
|
ReportTransformer |
Transforms a JUnit XML report.
|
ScreenshotOnFailureResultFormatter |
Understands a JUnit XML report formatter that takes a screenshot when a GUI test fails.
|
XmlJUnitResultFormatter |
Understands a copy of the original
XMLJUnitResultFormatter , with flexibility for extension. |
Support for embedding screenshots of failed GUI tests in a JUnit HTML report (created with Ant.)
To embed screenshots of failed GUI tests in the HTML JUnit reports, please follow the these steps:
org.fest.swing.annotation.GUITest
festreport
(provided by this module)
ScreenshotOnFailureResultFormatter
inside the
junit
Ant task
festreport
instead of junitreport
, and specify in its classpath where the
fest-swing-junit jar is
Here is an example:
<target name="test" depends="compile">
<taskdef resource="festjunittasks" classpathref="lib.classpath" />
<junit forkmode="perBatch" printsummary="yes" haltonfailure="no" haltonerror="no">
<classpath refid="lib.classpath" />
<classpath location="${target.test.classes.dir}" />
<classpath location="${target.classes.dir}" />
<formatter classname="org.fest.swing.junit.ant.ScreenshotOnFailureResultFormatter" extension=".xml" />
<batchtest fork="yes" todir="${target.junit.results.dir}">
<fileset dir="${target.test.classes.dir}" includes="**/*Test*.class" />
</batchtest>
</junit>
<festreport todir="${target.junit.report.dir}">
<classpath refid="lib.classpath" />
<fileset dir="${target.junit.results.dir}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${target.junit.report.dir}/html" />
</festreport>
</target>
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.