c

sbt

JUnitXmlTestsListener

class JUnitXmlTestsListener extends TestsListener

A tests listener that outputs the results it receives in junit xml report format.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JUnitXmlTestsListener
  2. TestsListener
  3. TestReportListener
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JUnitXmlTestsListener(outputDir: String)
  2. new JUnitXmlTestsListener(outputDir: String, logger: Logger)

    outputDir

    path to the dir in which a folder with results is generated

Type Members

  1. class TestSuite extends AnyRef

    Gathers data for one Test Suite.

    Gathers data for one Test Suite. We map test groups to TestSuites. Each TestSuite gets its own output file.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def contentLogger(test: TestDefinition): Option[ContentLogger]

    Returns None

    Returns None

    Definition Classes
    JUnitXmlTestsListenerTestReportListener
  7. 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
    JUnitXmlTestsListenerTestsListener
  8. def doInit(): Unit

    Creates the output Dir

    Creates the output Dir

    Definition Classes
    JUnitXmlTestsListenerTestsListener
  9. 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
    JUnitXmlTestsListenerTestReportListener
  10. 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
    JUnitXmlTestsListenerTestReportListener
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. val hostname: String

    Current hostname so we know which machine executed the tests

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val outputDir: String
  22. val properties: Elem

    all system properties as XML

  23. 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
    JUnitXmlTestsListenerTestReportListener
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. 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"

  26. 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
    JUnitXmlTestsListenerTestReportListener
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from TestsListener

Inherited from TestReportListener

Inherited from AnyRef

Inherited from Any

Ungrouped