mirror of https://github.com/sbt/sbt.git
Keep single parameter constructor for backwards bin compat.
This commit is contained in:
parent
13085138a5
commit
3702132019
|
|
@ -63,6 +63,8 @@ class JUnitXmlTestsListener(val outputDir: String) extends TestsListener {
|
||||||
* Each TestSuite gets its own output file.
|
* Each TestSuite gets its own output file.
|
||||||
*/
|
*/
|
||||||
class TestSuite(val name: String, timestamp: LocalDateTime) {
|
class TestSuite(val name: String, timestamp: LocalDateTime) {
|
||||||
|
def this(name: String) = this(name, LocalDateTime.now())
|
||||||
|
|
||||||
val events: ListBuffer[TEvent] = new ListBuffer()
|
val events: ListBuffer[TEvent] = new ListBuffer()
|
||||||
|
|
||||||
/**Adds one test result to this suite.*/
|
/**Adds one test result to this suite.*/
|
||||||
|
|
@ -142,10 +144,7 @@ class JUnitXmlTestsListener(val outputDir: String) extends TestsListener {
|
||||||
/**
|
/**
|
||||||
* Starts a new, initially empty Suite with the given name.
|
* Starts a new, initially empty Suite with the given name.
|
||||||
*/
|
*/
|
||||||
override def startGroup(name: String): Unit = {
|
override def startGroup(name: String): Unit = testSuite.set(Some(new TestSuite(name)))
|
||||||
val timestamp = LocalDateTime.now()
|
|
||||||
testSuite.set(Some(new TestSuite(name, timestamp)))
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all details for the given even to the current suite.
|
* Adds all details for the given even to the current suite.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue