Skip to content

test: add schema regression test + CI coverage enforcement#39

Merged
jakebromberg merged 1 commit intomainfrom
test/coverage-ci
Mar 11, 2026
Merged

test: add schema regression test + CI coverage enforcement#39
jakebromberg merged 1 commit intomainfrom
test/coverage-ci

Conversation

@jakebromberg
Copy link
Member

Closes #38

Summary

Test plan

  • Regression test passes locally against Docker Compose PostgreSQL
  • All 594 tests pass
  • Coverage at 84%, threshold of 80% enforced

…ment

Add test_schema_clears_stale_data_on_rerun: inserts data, re-runs schema, verifies tables are empty. This would have caught the UniqueViolation bug from #36 where CREATE TABLE IF NOT EXISTS preserved stale data across pipeline runs.

Update CI to run all tests (unit + integration) with coverage reporting in the postgres job, enforcing a minimum threshold of 80%.
@jakebromberg jakebromberg merged commit 6f4a4e2 into main Mar 11, 2026
3 checks passed
@jakebromberg jakebromberg deleted the test/coverage-ci branch March 11, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add regression test for schema stale data and CI coverage enforcement

1 participant