/kotest-extensions-h2

Provides Kotest integration with H2 Database

Primary LanguageKotlinApache License 2.0Apache-2.0

Kotest Extensions H2

Maintenance License Maven Central

Usage

Add the library to the project:

testImplementation("br.com.colman:kotest-extensions-h2:VERSION")

Add the extension to a test where you're using H2

class MyTest : FunSpec({
  val extension = extension(H2Extension())
  
  test("My h2 test") {
    val dataSource = extension.dataSource
    // ...
  }
})