TestResultLogger

sbt.TestResultLogger
See theTestResultLogger companion object

Logs information about tests after they finish.

Log output can be customised by providing a specialised instance of this trait via the testResultLogger setting.

Attributes

Since

0.13.5

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Main

Members list

Value members

Abstract methods

def run(log: Logger, results: Output, taskName: String): Unit

Perform logging.

Perform logging.

Value parameters

log

The target logger to write output to.

results

The test results about which to log.

taskName

The task about which we are logging. Eg. "my-module-b/test:test"

Attributes

Concrete methods

final def onlyIf(f: (Output, String) => Boolean, otherwise: TestResultLogger): TestResultLogger

Only allow invocation if certain criteria is met, else use another TestResultLogger (defaulting to nothing) .

Only allow invocation if certain criteria is met, else use another TestResultLogger (defaulting to nothing) .

Attributes

final def unless(f: (Output, String) => Boolean, otherwise: TestResultLogger): TestResultLogger

Allow invocation unless a certain predicate passes, in which case use another TestResultLogger (defaulting to nothing) .

Allow invocation unless a certain predicate passes, in which case use another TestResultLogger (defaulting to nothing) .

Attributes