Packages

package scalatest

Type Members

  1. class LoggingFreeSpec extends FreeSpec with LoggingFreeSpecLike

    Same as org.scalatest.FreeSpec but with mix-in of [LoggingFreeSpecLike]], which logs the start and the end of each test case.

    Same as org.scalatest.FreeSpec but with mix-in of [LoggingFreeSpecLike]], which logs the start and the end of each test case.

    See also

    LoggingFreeSpecLike

  2. trait LoggingFreeSpecLike extends FreeSpecLike

    Same as org.scalatest.FreeSpecLike but log the start and the end of each test case to SLF4j in Debug level.

    Same as org.scalatest.FreeSpecLike 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

Ungrouped