Skip to content
VerificationWould you notice if your agent drifted in production?Explore the 5-stage harness›
Reference

Verification check kinds

IntegrationTestEmitter derives 9 categories of database-backed integration tests from the project specification, executing them against a throwaway PostgreSQL container during aegil verify to guarantee invariant preservation.

Check kind What the generated test proves against the real server and database
AUTH Calls every non-stream endpoint method that is not @public with an unauthenticated sessionBuilder and asserts that Serverpod throws ServerpodUnauthenticatedException before the endpoint logic runs.
BOOT Generated only when the spec has nothing else to check (no operations): the server starts against its freshly migrated database, which the test harness does before any test runs, and a session can be created. It proves the project boots, not that any endpoint behaves.
HOOK Seeds a row in the transition’s fromState, invokes the custom @mutation endpoint as an authorized caller, and asserts that both the returned object and the re-queried database row are in toState.
ISOLATION Inserts rows for two distinct customers (alice and bob), calls the @autoQuery endpoint as alice and as an admin, and asserts that alice sees only her own rows while the admin sees both.
OWNERSHIP Calls an @autoMutation create endpoint as an authenticated customer (alice) and asserts that the created row’s owner column (ownerId, customerId, reporterId, or userId) equals alice — never a client-supplied value.
POLICY Seeds a row in a valid state, calls a role-restricted custom @mutation (auth.role == ‘admin’) as an ordinary customer, and asserts that SpecPodForbiddenException is thrown and the database row is unchanged.
PUBLIC Calls every @public operation with an unauthenticated sessionBuilder, on the operation’s public endpoint, and asserts that it completes without error.
STATE Seeds a row in a state other than the mutation’s required fromState, calls the custom @mutation as an authorized caller, and asserts that SpecPodStateTransitionException is thrown and the database row is unchanged.
VALIDATION Calls an @autoMutation create endpoint with each boundary-violating input (minLength - 1, maxLength + 1, min - 1, max + 1) and asserts that SpecPodValidationException is thrown.

Generated from aegil @ 948ae8e. Do not edit: change the code, or the description in site/annotations/.