简体   繁体   中英

A testsettings file or a vsmdi file is not supported with the MSTest V2 Adapter

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."

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM