Skip to content

LeoColman/kotest-kotless

Repository files navigation

Kotest Kotless

Build GitHub Maven Central

Utilities to ease testing the Kotless framework with Kotest.

Using with Gradle

testImplementation("br.com.colman.kotest.kotless:kotest-kotless:{version}")

Kotless Listener

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"}"""

}

Contributing

Feel free to open a pull request, or an issue for anything that you believe should be added to this utility.

Changelog

The changelog can be seen at the releases page

About

A collection of matchers and listeners to integrate the Kotest Testing framework and Kotless

Topics

Resources

License

Stars

Watchers

Forks

Languages