package scaladsl

Type Members

  1. trait LogCapturing extends BeforeAndAfterAll



    Mixin this trait to a ScalaTest test to make log lines appear only when the test failed.

    Requires Logback and configuration like the following the logback-test.xml:

    <appender name="CapturingAppender" class="" />
    <logger name="" >
      <appender-ref ref="STDOUT"/>
    <root level="DEBUG">
        <appender-ref ref="CapturingAppender"/>
  2. trait Repeated extends TestSuiteMixin

    Repeat test suite n times.

    Repeat test suite n times. Default: 1. Define number of times to repeat by overriding timesToRepeat or passing -DtimesToRepeat=n

    Ex) To run a single test 10 times from the terminal

    sbt "tests/testOnly *.TransactionsSpec -- -z \"must support copy stream with merging and multi message\" -DtimesToRepeat=2"