Skip to main content
The JUnit 5 integration ships as io.varianz:varianz-junit — added to testImplementation automatically by the Gradle plugin (includeJunit, default true), or explicitly with Maven (setup).
Endpoint resolution, in order: explicit configuration → system property -Dvarianz.endpointVARIANZ_ENDPOINT → default http://127.0.0.1:50051. For a plaintext local registry the JVM also needs VARIANZ_INSECURE_ALLOW_PLAINTEXT=true (see Configuration).

Session API

If a test starts its own in-process gRPC server, that server still needs RegistryBinding.init(...) and the agent — otherwise the test is connected to the registry but the server isn’t, and sync reports zero subscribers.

Kotest

io.varianz:varianz-kotest provides the same lifecycle for Kotest specs — client per spec, session per leaf test:
Endpoint resolution is identical to JUnit’s — the two extensions share the same client lifecycle.