Skip to content

Commit

Permalink
Duplicate .coverage.* files in the .cov directory
Browse files Browse the repository at this point in the history
  • Loading branch information
woxcab committed Apr 20, 2022
1 parent a4ae8c1 commit b91f320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cov/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ setenv =
COVERAGE_FILE={envdir}/.coverage.{envname}
commands =
{envpython} -m pytest {posargs:tests}
/bin/cp {env:COVERAGE_FILE} .cov/


[testenv:py311-scrapy{171,174,180,181,182,201,210,220,221,230,240,241,250,251,261}]
Expand All @@ -60,6 +61,7 @@ deps =
coverage<5
skip_install=true
commands =
/bin/bash -c 'rm -rf .cov/*'
/bin/bash -c 'rm -f "{toxworkdir}/py"*/.coverage*'
{envpython} -m coverage erase

Expand All @@ -71,8 +73,6 @@ skip_install=true
setenv =
COVERAGE_FILE=.coverage
commands=
/bin/mkdir -p .cov
/bin/bash -c 'cp "{toxworkdir}/py"*/.coverage* .cov/'
/bin/bash -c '{envpython} -m coverage combine .cov/.coverage*'
/bin/rm -rf .cov
{envpython} -m coverage html

0 comments on commit b91f320

Please sign in to comment.