Skip to content

Commit

Permalink
add coverage report to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSmithEU committed Apr 8, 2019
1 parent 244b078 commit c5905cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ test:
pycodestyle --max-line-length=120 tests
pycodestyle --max-line-length=120 src

coverage:
pytest --cov=src tests

docs: html

html: apidocs
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:

- script: |
pip install pytest
pytest tests --doctest-modules --verbose --junitxml=junit/test-results.xml
pip install pytest-cov
pytest tests --doctest-modules --cov src --cov-report html --verbose --junitxml=junit/test-results.xml
displayName: 'pytest'
- task: PublishTestResults@2
Expand Down

0 comments on commit c5905cb

Please sign in to comment.