Faster Schema Tests with PostgreSQL Template Databases
Speed up atlas schema test on PostgreSQL with template databases: build the schema once and run every test group on a fresh copy.
Speed up atlas schema test on PostgreSQL with template databases: build the schema once and run every test group on a fresh copy.
Learn how to test schema with Atlas. Write schema tests using .test.hcl files, run atlas schema test command, and validate database behavior with SQL assertions.
Test Data Scripts with atlas schema test, atlas migrate test, and atlas script test: the script command loads a script file, runs the scripts matching run, asserts what a script prints with output or match, expects failures with error, and runs the scripts under a reduced role or login with the as block.
Learn how to test declarative schema migration plans in Atlas using `atlas schema plan test` to validate planned changes before applying.