Skip to content

Commit

Permalink
Excluding commands from code coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcharnock committed Aug 10, 2023
1 parent 4aced2e commit ca23793
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ source =
data_file = .coverage/coverage
omit =
lightbus/utilities/testing.py
lightbus/commands/
# Commands are executed in a separate interpreter, so do not
# get included in the coverage results (although maybe we could)
lightbus/commands/*.py

[report]
exclude_lines =
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
- '.github/workflows/test.yaml'
- 'lightbus/**'
- 'tests/**'
- 'lightbus_vendored/**'
- 'poetry.lock'
- 'pyproject.toml'
- 'pytest.ini'
- 'lightbus_vendored/**'
- '.coveragerc'

jobs:
test:
Expand Down

0 comments on commit ca23793

Please sign in to comment.