package scalatest
Type Members
- class LoggingFreeSpec extends AnyFreeSpec with LoggingFreeSpecLike
Same as org.scalatest.freespec.AnyFreeSpec but with mix-in of [LoggingFreeSpecLike]], which logs the start and the end of each test case.
Same as org.scalatest.freespec.AnyFreeSpec but with mix-in of [LoggingFreeSpecLike]], which logs the start and the end of each test case.
- See also
LoggingFreeSpecLike
- trait LoggingFreeSpecLike extends AnyFreeSpecLike
Same as org.scalatest.freespec.AnyFreeSpecLike but log the start and the end of each test case to SLF4j in Debug level.
Same as org.scalatest.freespec.AnyFreeSpecLike but log the start and the end of each test case to SLF4j in Debug level.
If you want also see the last thrown exception of a test case (this is most probably a failed assertion), you can use LoggingFreeSpec.logException.
Example:
"A failing test (that also appears in log file)" in logException { assert(1 == 0) }
- See also
LoggingFreeSpec