Skip to content

Commit

Permalink
try to collect coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
  • Loading branch information
penguinolog committed Apr 12, 2019
1 parent 6fc5cfc commit 06473c7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .azure_pipelines/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
displayName: Build and install
- script: |
pip install asynctest mock pytest pytest-mock pytest-asyncio pytest-sugar
pip install asynctest mock pytest pytest-mock pytest-asyncio pytest-sugar pytest-cov
pytest -vvv --junitxml=unit_result.xml test
pytest -vvv --junitxml=unit_result.xml --cov=exec_helpers --cov-report=xml --cov-report=html test
displayName: PyTest
- task: PublishTestResults@2
Expand All @@ -57,3 +57,9 @@ jobs:
testResultsFormat: "JUnit"
testResultsFiles: ${{ format('$(System.DefaultWorkingDirectory)/unit_result.xml') }}
testRunTitle: ${{ format('{0}_{1}_{2}', parameters.name, parameters.architecture, parameters.kind) }}

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: ${{ format('$(System.DefaultWorkingDirectory)/coverage.xml') }}
reportDirectory: ${{ format('$(System.DefaultWorkingDirectory)/htmlcov') }}

0 comments on commit 06473c7

Please sign in to comment.