Support for MSBuild properties #6365
-
When using Microsoft Testing Platform with /p:MergeWith=${{ env.BUILD_ARTIFACTS }}/coverage/report.json
/p:Threshold=80
/p:ThresholdType=line
/p:ThresholdStat=total These flags are commonly used with code coverage tools like Coverlet to enforce coverage threshold. Can these properties be passed and honored by MTP n the same way they are with the VSTest workflow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Passing MSBuild properties to For coverlet specifically:
I'd be curious to know, is coverlet.msbuild really essential for you? Any issues with switching to coverlet.console? or even coverlet.collector in future when it supports MTP? For reference: coverlet-coverage/coverlet#1715 |
Beta Was this translation helpful? Give feedback.
No, this is not supported. Azure DevOps provides such functionality at PR level. https://learn.microsoft.com/en-us/azure/devops/pipelines/test/codecoverage-for-pullrequests?view=azure-devops