From 436783e955ecbc7b639476e0cdfe7daaccef9c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonhard=20K=C3=BCper?= Date: Mon, 31 Jul 2023 17:21:25 +0200 Subject: [PATCH] wip coverage --- .coveragerc | 1 + test.bash | 10 ++++++++++ tox.ini | 16 ++++++++-------- 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 test.bash diff --git a/.coveragerc b/.coveragerc index 7633296..9ad5333 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,5 @@ [run] +parallel = True branch = True source = djangocms_picture omit = diff --git a/test.bash b/test.bash new file mode 100755 index 0000000..d7c2da1 --- /dev/null +++ b/test.bash @@ -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 diff --git a/tox.ini b/tox.ini index 5055e5a..727d497 100644 --- a/tox.ini +++ b/tox.ini @@ -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