diff --git a/Makefile b/Makefile index 448cd95d..aec84f55 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aa73ad99..b447bdb2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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