forked from clan/clan-core
clan-cli: hint on how to get coverage html
This commit is contained in:
parent
c354157bd5
commit
202e07d5fe
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,5 +7,6 @@ __pycache__
|
|||||||
.mypy_cache
|
.mypy_cache
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
.pythonenv
|
.pythonenv
|
||||||
|
.reports
|
||||||
.ruff_cache
|
.ruff_cache
|
||||||
htmlcov
|
htmlcov
|
||||||
|
@ -66,7 +66,8 @@ let
|
|||||||
cp -r ${src} ./src
|
cp -r ${src} ./src
|
||||||
chmod +w -R ./src
|
chmod +w -R ./src
|
||||||
cd src
|
cd src
|
||||||
${checkPython}/bin/python -m pytest ./tests
|
${checkPython}/bin/python -m pytest ./tests \
|
||||||
|
|| echo -e "generate coverage report py running:\n pytest; firefox .reports/html/index.html"
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ dynamic = ["version"]
|
|||||||
scripts = {clan = "clan_cli:main"}
|
scripts = {clan = "clan_cli:main"}
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--cov . --cov-report term --cov-fail-under=100 --no-cov-on-fail"
|
addopts = "--cov . --cov-report term --cov-report html:.reports/html --cov-fail-under=100 --no-cov-on-fail"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
|
Loading…
Reference in New Issue
Block a user