Skip to main content

4 docs tagged with "schema test"

View all tags

Schema Testing - Test Schema with Atlas

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.

Testing Data Scripts: the script command

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.

Testing Migration Plans

Learn how to test declarative schema migration plans in Atlas using `atlas schema plan test` to validate planned changes before applying.