Add the library to the project:
testImplementation("br.com.colman:kotest-extensions-h2:VERSION")
Add the listener to a test where you're using H2
class MyTest : FunSpec({
val listener = listener(H2Listener())
test("My h2 test") {
val dataSource = listener.dataSource
// ...
}
})