Kora Testing Junit Kotlin

In-process JUnit 5 tests for Kotlin Kora 2.x services — io.koraframework:test-junit5, @KoraAppTest/@TestComponent from io.koraframework.test.extension.junit5, MockK @field:MockK/@SpyK, Mockito-Kotlin, KoraAppTestConfigModifier/KoraConfigModification.ofString, KoraAppTestGraphModifier/KoraGraphModification, the TestApplication submodule pattern with kspTest + kora.app.submodule.enabled, and Testcontainers. Use when writing or migrating a Kotlin @KoraAppTest, mocking a graph component, overriding test config, or wiring PostgreSQL/Kafka containers. Kora 2.0 contracts are synchronous — no runTest/coEvery around Kora calls. For Java see kora-testing-junit-java; for E2E over the packaged artifact see kora-testing-blackbox.

kora-projects f7730b0 12 files · 124.8 KB Updated

File contents

kora-projects/kora-skills/tree/main/plugins/kora-v2/skills/kora-testing-junit-kotlin commit f7730b0e6a

Frequently asked questions

npx skillmds@latest add kora-projects/kora-testing-junit-kotlin-2