Packages

package scaladsl

Type Members

  1. trait LogCapturing extends BeforeAndAfterAll

    See https://doc.akka.io/docs/akka/current/typed/testing-async.html#silence-logging-output-from-tests

    See https://doc.akka.io/docs/akka/current/typed/testing-async.html#silence-logging-output-from-tests

    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="akka.actor.testkit.typed.internal.CapturingAppender" />
    
    <logger name="akka.actor.testkit.typed.internal.CapturingAppenderDelegate" >
      <appender-ref ref="STDOUT"/>
    </logger>
    
    <root level="DEBUG">
        <appender-ref ref="CapturingAppender"/>
    </root>
  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"

Ungrouped