class JUnitXmlTestsListener extends TestsListener
A tests listener that outputs the results it receives in junit xml report format.
- Alphabetic
- By Inheritance
- JUnitXmlTestsListener
- TestsListener
- TestReportListener
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentLogger(test: TestDefinition): Option[ContentLogger]
Returns None
Returns None
- Definition Classes
- JUnitXmlTestsListener → TestReportListener
-
def
doComplete(finalResult: TestResult): Unit
Does nothing, as we write each file after a suite is done.
Does nothing, as we write each file after a suite is done.
- Definition Classes
- JUnitXmlTestsListener → TestsListener
-
def
doInit(): Unit
Creates the output Dir
Creates the output Dir
- Definition Classes
- JUnitXmlTestsListener → TestsListener
-
def
endGroup(name: String, result: TestResult): Unit
Ends the current suite, wraps up the result and writes it to an XML file in the output folder that is named after the suite.
Ends the current suite, wraps up the result and writes it to an XML file in the output folder that is named after the suite.
- Definition Classes
- JUnitXmlTestsListener → TestReportListener
-
def
endGroup(name: String, t: Throwable): Unit
called for each class or equivalent grouping We map one group to one Testsuite, so for each Group we create JUnit XML file, and looks like this:
called for each class or equivalent grouping We map one group to one Testsuite, so for each Group we create JUnit XML file, and looks like this:
<?xml version="1.0" encoding="UTF-8" ?> <testsuite skipped="w" errors="x" failures="y" tests="z" hostname="example.com" name="eu.henkelmann.bla.SomeTest" time="0.23" timestamp="2018-01-01T10:00:00"> <properties> <property name="os.name" value="Linux" /> ... </properties> <testcase classname="eu.henkelmann.bla.SomeTest" name="testFooWorks" time="0.0" > <error message="the foo did not work" type="java.lang.NullPointerException">... stack ...</error> </testcase> <testcase classname="eu.henkelmann.bla.SomeTest" name="testBarThrowsException" time="0.0" /> <testcase classname="eu.henkelmann.bla.SomeTest" name="testBaz" time="0.0"> <failure message="the baz was no bar" type="junit.framework.AssertionFailedError">...stack...</failure> </testcase> <system-out><![CDATA[]]></system-out> <system-err><![CDATA[]]></system-err> </testsuite>
- Definition Classes
- JUnitXmlTestsListener → TestReportListener
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
hostname: String
Current hostname so we know which machine executed the tests
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputDir: String
-
val
properties: Elem
all system properties as XML
-
def
startGroup(name: String): Unit
Starts a new, initially empty Suite with the given name.
Starts a new, initially empty Suite with the given name.
- Definition Classes
- JUnitXmlTestsListener → TestReportListener
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
targetDir: File
The dir in which we put all result files.
The dir in which we put all result files. Is equal to the given dir + "/test-reports"
-
def
testEvent(event: TestEvent): Unit
Adds all details for the given even to the current suite.
Adds all details for the given even to the current suite.
- Definition Classes
- JUnitXmlTestsListener → TestReportListener
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()