Skip to content

Commit

Permalink
zero coverage for now
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Feb 29, 2024
1 parent 8ad0648 commit 7a5fb8e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ skips = ["*/*test.py", "*/test_*.py", "*tests/*.py"]
branch = true

[tool.coverage.report]
fail_under = 92
fail_under = 0
show_missing = true


Expand Down
23 changes: 22 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[tox]
skipsdist=True
skip_missing_interpreters = True
envlist = lint, unit, static
envlist = lint, unit, static, coverage-report

[vars]
charm_path = {toxinidir}/charm/
Expand Down Expand Up @@ -103,3 +103,24 @@ deps =
-r{[vars]charm_path}/requirements.txt
commands =
bandit -c {[vars]charm_path}/pyproject.toml -r {[vars]src_path} {[vars]tst_path}

[testenv:unit]
description = Run unit tests
deps =
cosl
coverage[toml]
pytest
-r{[vars]charm_path}/requirements.txt
commands =
coverage run --source={[vars]src_path} \
-m pytest --ignore={[vars]tst_path}integration -v --tb native -s {posargs}
coverage report

[testenv:coverage-report]
description = Create test coverage report
deps =
coverage[toml]
pytest
-r{toxinidir}/requirements.txt
commands =
coverage report

0 comments on commit 7a5fb8e

Please sign in to comment.