#2084: debug coverage file
This commit is contained in:
@@ -104,7 +104,7 @@ stages:
|
|||||||
version: '2.1.x'
|
version: '2.1.x'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
pytest -v tests/ --cov=src/ -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-report xml:$(System.DefaultWorkingDirectory)/coverage.xml --cov-report html:$(System.DefaultWorkingDirectory)/htmlcov --cov-report term
|
pytest -v --cov=src/ -o junit_family=xunit2 --junitxml=junit/test-results.xml --cov-report xml:$(System.DefaultWorkingDirectory)/coverage.xml --cov-report html:$(System.DefaultWorkingDirectory)/htmlcov --cov-report term
|
||||||
displayName: 'Run tests and code coverage'
|
displayName: 'Run tests and code coverage'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
@@ -124,18 +124,18 @@ stages:
|
|||||||
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
|
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
|
||||||
# failIfCoverageEmpty: true
|
# failIfCoverageEmpty: true
|
||||||
|
|
||||||
- task: PublishCodeCoverageResults@2
|
# - task: PublishCodeCoverageResults@2
|
||||||
displayName: 'Install code coverage upload dependencies'
|
# displayName: 'Install code coverage upload dependencies'
|
||||||
# We only want the dependencies - this azure task is borked https://github.com/microsoft/azure-pipelines-tasks/issues/17756
|
# # We only want the dependencies - this azure task is borked https://github.com/microsoft/azure-pipelines-tasks/issues/17756
|
||||||
# ref: https://github.com/microsoft/azure-pipelines-tasks/issues/17756#issuecomment-1585620675
|
# # ref: https://github.com/microsoft/azure-pipelines-tasks/issues/17756#issuecomment-1585620675
|
||||||
condition: eq('true', 'false') # THIS WILL NEVER RUN ONCE TASK DECLARATION IS NEEDED TO DOWNLOAD IT SOURCES
|
# condition: eq('true', 'false') # THIS WILL NEVER RUN ONCE TASK DECLARATION IS NEEDED TO DOWNLOAD IT SOURCES
|
||||||
inputs:
|
# inputs:
|
||||||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
|
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
|
||||||
|
|
||||||
- task: CmdLine@2
|
# - task: CmdLine@2
|
||||||
displayName: Publish Code Coverage
|
# displayName: Publish Code Coverage
|
||||||
env: { 'SYSTEM_ACCESSTOKEN': $(System.AccessToken) } #access token is needed to upload report to azure pipeline tabs
|
# env: { 'SYSTEM_ACCESSTOKEN': $(System.AccessToken) } #access token is needed to upload report to azure pipeline tabs
|
||||||
inputs:
|
# inputs:
|
||||||
script: |
|
# script: |
|
||||||
mkdir /home/vsts/work/_temp/cobertura
|
# mkdir /home/vsts/work/_temp/cobertura
|
||||||
"$(Dotnet_Root)/dotnet"dotnet `find /home/vsts/work/_tasks/ -name CoveragePublisher.Console.dll` '$(System.DefaultWorkingDirectory)/coverage.xml' --reportDirectory /home/vsts/work/_temp/cobertura
|
# "$(Dotnet_Root)/dotnet" `find /home/vsts/work/_tasks/ -name CoveragePublisher.Console.dll` '$(System.DefaultWorkingDirectory)/coverage.xml' --reportDirectory /home/vsts/work/_temp/cobertura
|
||||||
|
|||||||
Reference in New Issue
Block a user