Skip to content

Latest commit

 

History

History
 
 

airframe-scalatest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

airframe-scalatest

airframe-scalatest is a base trait for writing tests using ScalaTest.

With airframe-scalatest, you can:

  • Configuring loggers automatically
  • Reload log levels periodically using log-test.properties file in src/test/resources folder.

Usage

Maven Central

build.sbt

libraryDependencies += "org.wvlet.airframe" %% "airframe-scalatest" % "(version)" % "test"
package org.yourdomain
import wvlet.airframe.AirframeSpec

class MyTest extends AirframeSpec {
  "my test" in {
    // ... write your test here  
  }
}

To configure log-level while running tests, add log-test.properties:

src/test/resources/log-test.properties

org.yourdomain=debug

This sets debug loglevel to classes under org.yourdomain package. It is recommended to add log-test.properties to .gitignore as as not to share such configurations for debugging.