Skip to content

Commit

Permalink
Remove code coverage reporting, due to difficulties supporting Python…
Browse files Browse the repository at this point in the history
… 3.6 and 3.11
  • Loading branch information
rtibbles committed Jul 17, 2024
1 parent 8111f14 commit 1c809b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 193 deletions.
2 changes: 0 additions & 2 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
beautifulsoup4==4.8.2
factory-boy==2.7.0
fake-factory==0.5.7
coverage==6.2
mock==2.0.0
mixer==6.0.1
pytest-cov==3.0.0
pytest==6.2.5
pytest-django==4.5.2
pytest-env==0.6.2
Expand Down
187 changes: 0 additions & 187 deletions test/coverage_blame.py

This file was deleted.

8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ deps =
commands =
sh -c 'kolibri manage makemigrations --check'
# Run the actual tests
python -O -m pytest {posargs:kolibri --cov=kolibri --cov-report= --cov-append --color=no}
python -O -m pytest --cov=kolibri --cov-report= --cov-append --color=no -p no:django test
python -O -m pytest {posargs:kolibri --color=no}
python -O -m pytest --color=no -p no:django test
# Fail if the log is longer than 200 lines (something erroring or very noisy got added)
sh -c "if [ `cat {env:KOLIBRI_HOME}/logs/kolibri.txt | wc -l` -gt 200 ] ; then echo 'Log too long' && echo '' && tail -n 20 {env:KOLIBRI_HOME}/logs/kolibri.txt && exit 1 ; fi"

Expand All @@ -54,5 +54,5 @@ deps =
-r{toxinidir}/requirements/cext.txt
-r{toxinidir}/requirements/postgres.txt
commands =
python -O -m pytest {posargs:kolibri --cov=kolibri --cov-report= --cov-append --color=no}
python -O -m pytest --cov=kolibri --cov-report= --cov-append --color=no -p no:django test
python -O -m pytest {posargs:kolibri --color=no}
python -O -m pytest --color=no -p no:django test

0 comments on commit 1c809b3

Please sign in to comment.