-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Describe the bug
We get sometimes errors in Azure Devops using Stryker with the error message:
Mutation Report Publisher failed to load. No HTML report found..
When we run the pipeline 5 times, this happens 4 times. 1 of the 5 times, we get an Report shown up in DevOps,
There are no changes on the code
We implement an YAML pipeline with multiple reports.
Can you assist on those error(s)?
Correct Result:

Error:

Pipeline:
- task: DotNetCoreCLI@2
displayName: 'Install dotnet-stryker'
inputs:
command: custom
custom: tool
arguments: 'install dotnet-stryker --tool-path $(Agent.BuildDirectory)/tools'
- task: PowerShell@2
displayName: 'dotnet tool update dotnet-stryker'
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)\tests\'
targetType: inline
script: dotnet tool update dotnet-stryker
- task: PowerShell@2
displayName: 'Run dotnet-stryker for xxxxApi.Tests'
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)\tests\xxxxApi.Tests'
targetType: inline
script: dotnet stryker --config-file "../stryker-config.json"
- task: PowerShell@2
displayName: 'Run dotnet-stryker for xxx.Business.Tests'
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)\tests\xxx.Business.Tests'
targetType: inline
script: dotnet stryker --config-file "../stryker-config.json"
- task: PowerShell@2
displayName: 'Run dotnet-stryker for xxx.DataAccess.Tests'
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)\tests\xxxxxxxxx.Tests'
targetType: inline
script: dotnet stryker --config-file "../stryker-config.json" --mutate "**/*Repository.cs"
- task: PublishMutationReport@1
displayName: 'Publish Mutation Test Report'
inputs:
reportPattern: '**/mutation-report.html'Config json file:
{
"stryker-config": {
"mutation-level": "Standard",
"reporters": [ "html", "progress" ],
"thresholds": {
"high": 80,
"low": 65,
"break": 50
}
}
}Reactions are currently unavailable