Skip to content

Integrate testmon for optimized test execution - #2

Merged
GeorgePearse merged 1 commit into
masterfrom
add/testmon-optimization
Nov 2, 2025
Merged

Integrate testmon for optimized test execution#2
GeorgePearse merged 1 commit into
masterfrom
add/testmon-optimization

Conversation

@GeorgePearse

Copy link
Copy Markdown
Owner

Summary

Adds pytest-testmon integration to automatically track test dependencies on source code. Only relevant tests run based on code changes, significantly speeding up CI feedback for PRs.

Changes

  • Add pytest-testmon and pytest-watch to test dependencies
  • Update GitHub Actions workflow to use testmon for intelligent test selection
  • Falls back to full test suite if optimized run fails
  • Preserves code coverage reporting

Benefits

  • Faster feedback: PRs that change specific code only run affected tests
  • Reduced CI time: Skips unrelated tests automatically
  • Development UX: pytest-watch enables watch mode for local testing
  • Reliability: Falls back to full suite if needed

Test plan

  • Verify testmon DB is created (.testmondata)
  • Check that PR triggers CI with optimized test selection
  • Confirm full suite runs as fallback if needed
  • Verify coverage reports still generated correctly

- Add pytest-testmon to test dependencies
- Add pytest-watch for development convenience
- Update GitHub Actions workflow to use testmon
- Only relevant tests run based on code changes
- Falls back to full suite if optimized run fails
- Speeds up CI feedback for PRs with targeted changes
@GeorgePearse
GeorgePearse merged commit a878c54 into master Nov 2, 2025
5 checks passed
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.

1 participant