package scaladsl
Type Members
- trait LogCapturing extends BeforeAndAfterAll
See https://pekko.apache.org/docs/pekko/current/typed/testing-async.html#silence-logging-output-from-tests
See https://pekko.apache.org/docs/pekko/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="org.apache.pekko.actor.testkit.typed.internal.CapturingAppender" /> <logger name="org.apache.pekko.actor.testkit.typed.internal.CapturingAppenderDelegate" > <appender-ref ref="STDOUT"/> </logger> <root level="DEBUG"> <appender-ref ref="CapturingAppender"/> </root>
- 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"