Round Trip Tests¶
Round-trip tests are the main provider-backed correctness suite.
Files¶
test_backend_round_trip.pychecks the latest PostgreSQL, MySQL, MariaDB, and ClickHouse reference flow.test_version_matrix_round_trip.pyruns the reference flow across declared backend versions.test_generate_models_integration.pychecks reverse engineering and reload.test_backend_evolution.pychecks staged changes, rollback, and reapply.test_providers.pychecks lifecycle, version selection, and reset isolation.test_sqlite_black_box.pychecks public SQLite behavior.
Run one backend¶
The matrix workflow uses backend selection to prevent every job from starting every database family.
What makes a round trip meaningful¶
The test does not stop after a command returns zero. It inspects tables, columns, indexes, constraints, backend table options, generated model content, and public diff output. This catches failures where SQL execution succeeds but the representation used for the next migration is incomplete.