Overview
Invirt ships a set of test utilities split across modules, each one paired with the production module it supports. All test modules depend on Kotest for matcher styling.
| Dependency | Purpose |
|---|---|
dev.invirt:invirt-test | Building form requests, asserting view responses, validation errors, redirects, cookies. |
dev.invirt:invirt-security-test | Building Authenticator test doubles and asserting AuthenticationResponse outcomes. |
dev.invirt:invirt-mongodb-test | Spinning up a MongoDB Testcontainer, spying on collections, document assertions. |
testImplementation("dev.invirt:invirt-test")
testImplementation("dev.invirt:invirt-security-test")
testImplementation("dev.invirt:invirt-mongodb-test")
See the Web tests, Security tests and MongoDB tests sections for the available helpers.