ci: collect test results
@@ -8,11 +8,17 @@ jobs:
coverage run -a -m bgmi.main install
bgmi -h
cp tests/test_script.py $BGMI_PATH/scripts/test_script.py
- coverage run -a -m pytest tests --cache-requests
+ coverage run -a -m pytest tests --cache-requests --junitxml tmp/junit/test_report.xml
env:
DEBUG: mikan,dump
BGMI_PATH: $(Pipeline.Workspace)/.bgmi
+ - task: PublishTestResults@2
+ condition: succeededOrFailed()
+ inputs:
+ testResultsFiles: tmp/junit/test_*.xml
+ testRunTitle: Publish test results for Python $(python_version)
+
- task: PublishBuildArtifacts@1
condition: always()
inputs:
