Skip to content

Commit

Permalink
Don't track code coverage temporary files
Browse files Browse the repository at this point in the history
While running tests with coverage enabled, files of the form
.coverage.MachineName.####.###### are created temporarily. When
tests complete normally (whether or not there are failures), these
files are automatically removed. However, when tests are cancelled
with SIGINT (Ctrl+C), they are sometimes retained.

This adds another pattern to .gitignore so that, in addition to not
tracking the .coverage file that is retained after tests, these
other temporary files are also not tracked.
  • Loading branch information
EliahKagan committed Sep 18, 2023
1 parent d46ba96 commit 4071518
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ venv/
/lib/GitPython.egg-info
cover/
.coverage
.coverage.*
/build
/dist
/doc/_build
Expand Down

0 comments on commit 4071518

Please sign in to comment.