Skip to content

Commit

Permalink
patch: clean up test-reports dir before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phitoduck committed May 19, 2024
1 parent 46dd9ed commit b188260
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.repo_name}}/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function test:ci {
# (example) ./run.sh test tests/test_states_info.py::test__slow_add
function run-tests {
PYTEST_EXIT_STATUS=0
rm -rf "$THIS_DIR/test-reports" || true
python -m pytest ${@:-"$THIS_DIR/tests/"} \
--cov "${COVERAGE_DIR:-$THIS_DIR/src}" \
--cov-report html \
Expand Down

0 comments on commit b188260

Please sign in to comment.