Skip to main content

2 docs tagged with "migrate test"

View all tags

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 Migrations

Learn how to write tests for your migrations with Atlas using `atlas migrate test` to ensure migrations are correct and safe, including data migrations.