0

On local I am getting "A testsettings file or a vsmdi file is not supported with the MSTest V2 Adapter", after following VSTest: A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter. No test is available link I am able to fix issue on local, however, still facing issue in Azure Devops pipeline where check build quality step fails with timeout error "Unable to get code coverage data within the maximum wait time."

Pritam
  • 1,288
  • 5
  • 23
  • 40
  • Hi Pritam, Did you get a chance to implement the solution that I suggested? Were you able to resolve? If my reply helped or gave a right direction. Appreciate for *marking it as an answer* which will also help others in the community. – PatrickLu-MSFT May 21 '20 at 10:40

1 Answers1

0

The Build Quality Checks task currently supports two policies Warnings Policy & Code Coverage Policy. According to your description and error info, seems there were something wrong with your Code Coverage Policy.

When you want to use the Code Coverage Policy you need to make sure that you publish code coverage values calculated by your test tool first.

The Policy itself does not calculate the code coverage. Before you add the task and activate the policy, please make sure that you can already see code coverage values in your build summary.

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62