# Run tests and site checks

Source: https://zotonic.com/docs/2937/run-tests-and-site-checks

URI: https://zotonic.com/id/2937

Language: en

Use the project's test workflow in a dedicated development or test environment. Two CLI entry points have different scopes:

- `runtests` starts the configured test runner and accepts test selections.
- `sitetest garden` stops the site, drops and uses the `z_sitetest` database schema, runs site tests, then restarts with normal configuration. Use a disposable test environment and avoid concurrent runs sharing the database.

Read the relevant reference page before choosing arguments. Tests may create or change data; a passing startup check is not a complete test of models, permissions, and browser behavior.

Run a focused test for the change, then the repository's required broader checks. Preserve the first meaningful error and reproduce it with a minimal case rather than repeatedly restarting the whole node.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2937?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2937?language=en>)
