Skip to content

Commit

Permalink
wip coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoh committed Aug 10, 2023
1 parent aa69400 commit 436783e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[run]
parallel = True
branch = True
source = djangocms_picture
omit =
Expand Down
10 changes: 10 additions & 0 deletions test.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

coverage erase

tox run -f py311
tox run -f py38

coverage combine
coverage html
coverage report --fail-under=100
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ env_list =
py38-django32-cms{38, 39, 310}
skip_missing_interpreters=True

[testenv]
deps =
-r tests/requirements/{env_name}.txt
commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report -m

[testenv:ruff]
deps = ruff
commands = ruff djangocms_picture
skip_install = true

[testenv]
deps =
-r tests/requirements/{env_name}.txt
commands =
; {env:COMMAND:coverage} erase
{env:COMMAND:coverage} run --parallel-mode setup.py test
; {env:COMMAND:coverage} report --show-missing

0 comments on commit 436783e

Please sign in to comment.