Skip to content

Commit

Permalink
Fix coverage reporting (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
cutwater authored Nov 14, 2024
1 parent 49a2753 commit a4fb3c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ test: lint test/unit test/functional

.PHONY: test/unit
test/unit:
pytest tests/unit --cov=galaxy_importer --cov-branch --cov-report xml:coverage.xml
pytest tests/unit --cov=galaxy_importer --cov-config=pyproject.toml --cov-report xml:coverage.xml

.PHONY: test/unit/annotate
test/unit/annotate:
pytest tests/unit --cov=galaxy_importer --cov-branch --cov-report annotate
pytest tests/unit --cov=galaxy_importer --cov-config=pyproject.toml --cov-report annotate

.PHONY: test/unit/annotate/clean
test/unit/annotate/clean:
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@

[tool.ruff]
line-length = 100

[tool.coverage.run]
relative_files = true
branch = true

[tool.coverage.report]
fail_under = 95.50
precision = 2
5 changes: 0 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,3 @@ galaxy_importer =
ansible_test/container/Dockerfile
ansible_test/container/entrypoint.sh
ansible_test/container/eda/tox.ini


[coverage:report]
fail_under = 95.50
precision = 2

0 comments on commit a4fb3c0

Please sign in to comment.