Utilities to ease testing the Kotless framework with Kotest.
testImplementation("br.com.colman.kotest.kotless:kotest-kotless:{version}")To start and stop the Kotless Local App (Currently only kotless-lang), add the KotlessListener to your listeners. From there you can access your kotless application normally:
listeners(KotlsListener(port = 8080))
test("My kotless test") {
// Code that uses your HTTP service
"http://localhost:8080/foo".httpGet().responseString().third.get() shouldBe """{"foo":"bar"}"""
}
Feel free to open a pull request, or an issue for anything that you believe should be added to this utility.
The changelog can be seen at the releases page