Skip to main content

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.

DependencyPurpose
dev.invirt:invirt-testBuilding form requests, asserting view responses, validation errors, redirects, cookies.
dev.invirt:invirt-security-testBuilding Authenticator test doubles and asserting AuthenticationResponse outcomes.
dev.invirt:invirt-mongodb-testSpinning 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.