sitetest: Run site tests using an isolated test schema
Run site tests using an isolated test schema.
Syntax
bin/zotonic sitetest <site_name>
Requirements and effects
Requires a running node and a disposable testing environment; interrupts the selected site.
The runner stops the site, overrides its schema to z_sitetest, drops that schema, starts the site, and runs discovered *_sitetest EUnit modules. It then removes the override and restarts with the normal schema. Do not run concurrent tests sharing that database schema. Inspect failures and restoration of normal state.
Example
bin/zotonic sitetest garden
Run commands from the Zotonic workspace root. Replace garden with your site name where applicable.