score:1
Accepted answer
you could use the test-listeners interface:
testlisteners += new testreportlistener {
def startgroup(name: string): unit = println(s"start group $name")
def endgroup(name: string, result: testresult.value): unit =
println(s"end group $name (succeeded)")
//
def endgroup(name: string, t: throwable): unit =
println(s"end group $name (failed)")
//
def testevent(event: testevent): unit =
println(s"test event: ${event.result}")
}
then either between groups (files) or individual tests, you insert a thread.sleep
. not very elegant, but i guess it will work.
Source: stackoverflow.com
Related Query
- Delay between Scala test classes
- What’s the difference between ScalaTest and Scala Specs unit test frameworks?
- How do you share classes between test configurations using SBT
- Weird Scala test behavior with global variables: including a delay makes it succeed
- How to convert between to case classes with `mostly the same` fields using Scala Shapeless
- How to test scala classes for kryo deserialization incompatibility
- intellij Junit generate test classes for scala
- How to test scala case classes using Junit
- Scala test match case classes on some field
- Circular references between classes in Scala
- How to test my scala json after creating the implicit classes
- Scala case classes test
- Difference between object and class in Scala
- What is the formal difference in Scala between braces and parentheses, and when should they be used?
- Difference between a Seq and a List in Scala
- Difference between method and function in Scala
- difference between foldLeft and reduceLeft in Scala
- Difference between Array and List in scala
- What are the key differences between Scala and Groovy?
- Scala: What is the difference between Traversable and Iterable traits in Scala collections?
- Match multiple cases classes in scala
- Difference between reduce and foldLeft/fold in functional programming (particularly Scala and Scala APIs)?
- Difference between using App trait and main method in scala
- Differences between these three ways of defining a function in Scala
- What's the difference between :: and ::: in Scala
- What are the differences and similarties between Scala traits vs. Java 8 interfaces?
- Scala - What is the difference between size and length of a Seq?
- Scala type keyword: how best to use it across multiple classes
- What are type classes in Scala useful for?
- what to choose between require and assert in scala
More Query from same tag
- How to access fields of case class from JSP?
- How to rewrite a for-loop Seq output into Stream output?
- Adding divs to the HTML body using Lift
- variable length arguments with generic types scala
- Bounded priority queue in ZIO
- Compare 2 arrays in Scala Spark Dataframe
- Scala List performance
- Can we create a type alias for a tuple dynamically?
- akka-http validate path segment
- In spark , if I want to connect two pairs ,and the pair value is DenseMatrix ,what should I do?
- Scala returning List[Int] when calling .head on list
- Scala classes in clojure
- MapReduce context output in Scala
- how to save a list of case classes in scala
- How to truncate two uuid and generate new uuid in scala
- How to start on scala
- HSQL Triggers : user lacks privilege or object not found: NEWROW.ID
- Work with collection keeping the type information
- Scala and Set parametrized type by Int
- Higher order Functors in scala
- scala Future to run sequential jobs
- Scala => with =
- What is the recommended way to do multithreading in Scala
- LZW TIFF decoding
- exception during macro expansion: [error] java.lang.IllegalStateException: Invalid group by aggregation:
- Multiple File Upload Only takes last file in Scala/Play
- Cross product in Scala
- How to take the key from Array[(String, Iterable[Int])]?
- Streaming Predictions in Apache Flink
- Which is the best way to write this scala method?