Skip to content

Commit

Permalink
tests: Create coverage report in XML format for uploading to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Aug 24, 2023
1 parent 5e7cc99 commit 16ce346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
.tox
coverage.xml
nosetests.xml

# Translations
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ lint: ## flake8 lint the project
flake8 epo_ops tests

test: clean ## Run tests with virtualenv Python
py.test -s -v --lf --cov-report term --cov epo_ops tests
py.test -s -v --lf --cov epo_ops tests --cov-report term-missing --cov-report xml

test-ci: clean ## Run tests in CI environment with virtualenv Python
py.test -v --cov epo_ops --cov-report term-missing
py.test -v --cov epo_ops tests --cov-report term-missing --cov-report xml

tox: clean ## Run tests with all supported Python versions
tox

coverage: clean ## Check code coverage locally
py.test -s -v --cov-report html --cov-report term --cov epo_ops tests
py.test -s -v --cov epo_ops tests --cov-report term-missing --cov-report xml --cov-report html
open htmlcov/index.html

release: clean # Package and upload a release to PyPI
Expand Down

0 comments on commit 16ce346

Please sign in to comment.