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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JUnitXmlTestsListener(outputDir: String)

    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.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contentLogger(test: TestDefinition): Option[ContentLogger]

    Returns None

    Returns None

    Definition Classes
    JUnitXmlTestsListenerTestReportListener
  9. def doComplete(finalResult: TestResult.Value): 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
  10. def doInit(): Unit

    Creates the output Dir

    Creates the output Dir

    Definition Classes
    JUnitXmlTestsListenerTestsListener
  11. def endGroup(name: String, result: TestResult.Value): 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
  12. 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 an XML like this: <?xml version="1.

    called for each class or equivalent grouping We map one group to one Testsuite, so for each Group we create an XML 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"> <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
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. val hostname: String

    Current hostname so we know which machine executed the tests

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. val outputDir: String

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

  24. val properties: Elem

    all system properties as XML

  25. 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
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. 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"

  28. 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
  29. val testSuite: DynamicVariable[TestSuite]

    The currently running test suite

  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TestsListener

Inherited from TestReportListener

Inherited from AnyRef

Inherited from Any

Ungrouped