Conformance tests for Restate SDK implementations. Given a Docker image that implements the service contracts, the suite verifies correct SDK behavior across all test suites.
- JVM >= 25 (both modules build with toolchain 25, and the released JAR targets it)
- Docker
Run all suites against a service image:
./gradlew :sdk-tests:run --args='run --service-container-image=<service-image>'Run a specific suite:
./gradlew :sdk-tests:run --args='run --test-suite=default --service-container-image=<service-image>'Run a single test:
./gradlew :sdk-tests:run --args='run --test-suite=default --test-name=State --service-container-image=<service-image>'Download the latest JAR from GitHub Releases and run:
java -jar sdk-tests.jar run --service-container-image=<service-image>
java -jar sdk-tests.jar run --test-suite=default --service-container-image=<service-image>Useful during SDK development to run a single test against a locally running service:
java -jar sdk-tests.jar debug --test-name=State 9080
# or with a named container:
java -jar sdk-tests.jar debug --test-name=State myService=9080Options available in debug mode:
| Option | Description |
|---|---|
--test-suite |
Suite to use for environment setup (default: default) |
--test-name |
Test class to run (required) |
--retain-after-end |
Keep Docker network alive after the test (for inspection) |
--mount-state-directory |
Mount a local directory as Restate data directory |
--local-ingress-port |
Bind Restate ingress to a specific host port |
--local-admin-port |
Bind Restate admin to a specific host port |
--local-node-port |
Bind the Restate node-to-node port to a specific host port |
| Suite | Description |
|---|---|
default |
Core tests, single Restate node |
threeNodes |
Multi-node cluster (3 nodes, 4 partitions) |
alwaysSuspending |
Tests with zero inactivity timeout (every invocation suspends) |
threeNodesAlwaysSuspending |
Multi-node + always-suspending |
singleThreadSinglePartition |
Single thread, single partition |
lazyState |
Tests with eager state loading disabled |
lazyStateAlwaysSuspending |
Lazy state + always-suspending |
persistedTimers |
Tests with in-memory timer limit set to 1 (forces persistence) |
Pass all (the default) to run all suites sequentially.
| Option | Env var | Description |
|---|---|---|
--service-container-image |
SERVICE_CONTAINER_IMAGE |
Docker image for the service under test. If omitted, no service container is deployed |
--restate-container-image |
RESTATE_CONTAINER_IMAGE |
Restate runtime image (default: ghcr.io/restatedev/restate:main) |
--image-pull-policy |