Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ line_length = 120
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--cov=helm_values_manager --cov-report=term-missing --cov-report=xml"
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=helm_values_manager --cov-report=term-missing --cov-report=xml --cov-branch"

[tool.coverage.run]
source = ["helm_values_manager"]
Expand All @@ -64,12 +66,15 @@ branch = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
show_missing = true

[tool.coverage.xml]
output = "coverage.xml"

[tool.tox]
legacy_tox_ini = """
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ isolated_build = True
[testenv]
extras = dev # Install development dependencies from pyproject.toml
deps =
coverage
pytest
pytest-cov
allowlist_externals =
curl
bash
Expand All @@ -19,7 +20,4 @@ commands_pre =
./get_helm.sh && \
rm get_helm.sh; \
fi'
commands =
# Run tests with coverage and generate both XML and JUnit reports
coverage run -m pytest -rap --junitxml=junit.xml tests/
coverage xml -i
commands = pytest -v {posargs:tests/}
Loading