GIT-016 critical repo-cleanliness

Test results gitignored

Test output, coverage reports not committed

Question to ask

"Are coverage reports cluttering your git history?"

Verification guide

Severity: Critical

Check .gitignore includes test output patterns:

grep -E "(coverage|\.nyc_output|test-results|\.lcov|junit\.xml|__snapshots__|\.pytest_cache)" .gitignore

Verify no test output is committed:

git ls-files | grep -iE "(coverage|test-results|\.lcov|junit\.xml|\.nyc_output)"

Common patterns that should be gitignored:

  • coverage/
  • .nyc_output/
  • test-results/
  • *.lcov
  • junit.xml
  • .pytest_cache/
  • __pycache__/

Pass criteria:

  • Test outputs are in .gitignore
  • No test output files committed to repo

Fail criteria:

  • Test output patterns missing from .gitignore
  • Test results/coverage files committed

Evidence to capture:

  • Patterns present in .gitignore
  • Any committed test output files

Section

01. Git Repo Setup & Security

Infrastructure & Setup