Skip to content

Commit

Permalink
Generate and upload JUnit XML (#7094)
Browse files Browse the repository at this point in the history
  • Loading branch information
brcrista authored Apr 30, 2018
1 parent ed20f97 commit 4ecb2fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/ci/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ phases:
- script: python -m pip install --upgrade pip && pip install -r requirements.txt
displayName: 'Install dependencies'

- script: pip install pytest && pytest tests --doctest-modules
# - script: 'pip install flake8 && flake8'
# displayName: 'Flake8'

- script: pip install pytest && pytest tests --doctest-modules --junitxml=junit/test-results.xml
displayName: 'pytest'

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'

# ================
# Phase 2: Publish
# ================
Expand Down

0 comments on commit 4ecb2fe

Please sign in to comment.