Stove
End-to-end tests in Kotlin for JVM and non-JVM applications.
Run your application with its dependencies, test complete use cases, and see what happened when they fail.
Get started ·
Setup wizard ·
Documentation ·
Recipes ·
Try the dashboard ·
Release notes
Why Stove?
An end-to-end test suite can become a small framework of its own. There is code to boot the application, connect its dependencies, prepare data, wait for background work, and explain what went wrong. Start another service or switch application frameworks, and much of that work starts over.
Stove exists to make that work reusable. It brings application startup, dependency configuration, assertions, and diagnostics into one test lifecycle. You describe the environment your application needs, then write tests around its use cases.
That same approach works across Spring Boot, Ktor, Micronaut, and Quarkus, and extends to applications in other languages. Your test suite can keep a familiar shape as the stack around it changes.
What a Stove test looks like
Call your application, then check its database and messages in the same test:
stove {
http {
postAndExpectBodilessResponse("/orders", body = CreateOrderRequest(userId, productId).some()) {
it.status shouldBe 201
}
}
postgresql {
shouldQuery<Order>("SELECT status FROM orders WHERE user_id = '$userId'", mapper = { row ->
Order(row.string("status"))
}) {
it.single().status shouldBe "CONFIRMED"
}
}
kafka {
shouldBePublished<OrderCreatedEvent> {
actual.userId == userId
}
}
}
The HTTP, PostgreSQL, and Kafka blocks give the test direct access to each part of the flow. Add the systems your application uses, including mocks for external services you want to control.
For JVM applications running in the test process, you can set a breakpoint in your application code and step through the request from the test. You can also access application beans when a test needs them. Applications running as a separate process, in a container, or in an existing environment use the same style of assertions.
Get started
Stove is distributed as a set of libraries on Maven Central, consumed with the com.trendyol:stove-bom BOM.
Tests are written in Kotlin, even when the application is Java, Scala, Go, Python, or another language. Stove supports JDK 17+ as a consumer; the repository's own build uses newer JDKs. You'll need Docker for dependencies started through Testcontainers; provided instances let you use infrastructure you already have.
Add Stove to your application