我有一个带有“Visual Studio 测试”任务的管道,其中“最小测试数”设置为 10:
但是,当一个版本不满足 10 个最低测试要求时,日志中会包含正确的错误:
2021-02-18T04:47:15.4609022Z ##[error]The specified minimum number of tests 10 were not executed in the test run.
但是,下面有两行,我们有以下日志:
2021-02-18T04:47:16.2005970Z Execution Result Code 1 is non zero, checking for failed results
2021-02-18T04:47:17.8073253Z Failed tests if any were marked as flaky hence changing the exit code to 0
并且任务被标记为成功。整个测试套件中的所有测试都没有标记为易碎?失败的测试在哪里可以标记为易碎,从而将退出代码更改为 0日志来自?