Skip to content

Commit

Permalink
Merge pull request #699 from devdanzin/branch_for_coverage
Browse files Browse the repository at this point in the history
Enable collection of branch coverage on test runs
  • Loading branch information
niccokunzmann committed Jul 28, 2024
2 parents 6d94f5b + 7da0bbd commit 4afb2b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Minor changes:
- add ``__all__`` variable to each modules in ``icalendar`` package
- Improve test coverage.
- Adapt ``test_with_doctest.py`` to correctly run on Windows.
- Measure branch coverage when running tests.

Breaking changes:

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ deps =
hypothesis
pytz
commands =
coverage run --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
Expand All @@ -32,7 +32,7 @@ deps =
hypothesis
commands =
rm -rf build # do not mess up import
coverage run --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage run --branch --source=src/icalendar --omit=*/tests/hypothesis/* --omit=*/tests/fuzzed/* --module pytest []
coverage report
coverage html
coverage xml
Expand Down

0 comments on commit 4afb2b2

Please sign in to comment.