Skip to content

Update Github action to filter files that will never be covered. #8382

Description

@g1rly-c0d3r

Is your feature request related to a problem? Please describe.
Our Coverage action currently measures all files, including things like urls.py and the test files themselves. coverage.py has an ommit flag, which we could utilize to filter those files out. Jest also has a collectCoverageFrom flag, which behaves similarly.

Describe the solution you'd like
Use the above described flags to filter out test definitions and other such files that we do not want to include in coverage reports, because we know they will never be covered.

Describe alternatives you've considered

  • Leave those files in
    • This is problematic because we would then try to invent tests for the sake of having a higher coverage percentage, rather than have thoughtful, meaningful tests.

Reported By
SCC

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions