Skip to content

Conversation

@hiroshinishio
Copy link
Contributor

…t/fastest/greatest

Fixed bug where test files like services/github/commits/test_get_latest_remote_commit_sha.py were incorrectly showing up in the coverage dashboard.

The issue was that the function had two categories of patterns (strong and weak) but applied exclude patterns globally, causing legitimate test files to be excluded.

Changes:

  • Separated test patterns into strong (unambiguous) and weak (can have false positives)
  • Strong patterns now return true immediately without exclusion checks
  • Weak patterns apply stricter exclusion filtering for false positives like latest.py
  • Added comprehensive test patterns from gitauto repo (snapshots, fixtures, configs, Storybook)
  • All 50 test cases pass with 143 assertions covering all patterns

This ensures test infrastructure files are properly filtered from coverage results.

…t/fastest/greatest

Fixed bug where test files like `services/github/commits/test_get_latest_remote_commit_sha.py`
were incorrectly showing up in the coverage dashboard.

The issue was that the function had two categories of patterns (strong and weak) but applied
exclude patterns globally, causing legitimate test files to be excluded.

Changes:
- Separated test patterns into strong (unambiguous) and weak (can have false positives)
- Strong patterns now return true immediately without exclusion checks
- Weak patterns apply stricter exclusion filtering for false positives like latest.py
- Added comprehensive test patterns from gitauto repo (snapshots, fixtures, configs, Storybook)
- All 50 test cases pass with 143 assertions covering all patterns

This ensures test infrastructure files are properly filtered from coverage results.
@hiroshinishio hiroshinishio merged commit f52e984 into main Dec 29, 2025
2 checks passed
@hiroshinishio hiroshinishio deleted the wes branch December 29, 2025 07:42
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.

2 participants