Skip to content

Commit

Permalink
feat: run coverage from tox
Browse files Browse the repository at this point in the history
  • Loading branch information
mbi committed Nov 15, 2024
1 parent 204d0c4 commit b792299
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 5 additions & 3 deletions testproject/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ branch = True
source =
captcha
omit =
../*migrations*
../*tests*
../*management*
../captcha/migrations/*
../captcha/tests/*
../captcha/management/*

[report]
precision = 2
fail_under = 80.0
14 changes: 13 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ envlist =
py{39,310}-django42-jinja2,
py{310,311}-django{42,50}-jinja2,
py312-django{50,51}-jinja2,
gettext,flake8,docs
gettext,flake8,docs,coverage

[gh-actions]
python =
Expand Down Expand Up @@ -93,3 +93,15 @@ deps =
changedir = docs
commands=
sphinx-build -b html . _build/html


[testenv:coverage]
changedir = testproject

deps =
coverage

commands=
# coverage debug config
coverage run --rcfile=.coveragerc manage.py test captcha
coverage report --rcfile=.coveragerc

0 comments on commit b792299

Please sign in to comment.