Azure DevOps "Visual Studio Test" - 使用 "Override Parameters" 时无法启用 "Rerun Failed Tests"

Azure DevOps "Visual Studio Test" - Cannot Enable "Rerun Failed Tests" When using "Override Parameters"

我有一个发布定义,我想在同一步骤中同时使用 "Override Parameters" 和 "Rerun Failed Tests",它看起来像这样:

当我只指定覆盖参数时,一切正常,没问题。当我启用 "Rerun Failed Tests" 选项时,虽然我在我的版本中收到以下错误:

SettingsUpdation.Run : Exception occurred during the updation of run settings: System.FormatException: Error encountered while overriding test run parameters. Please check the test run parameteres provided. Error occurred while publishing test results : Skipping marking test run as complete as test run id 0 is invalid. Error: C:\TFSAgent4_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9.143.8\Modules\DTAExecutionHost.exe failed with return code: 1 Vstest failed with error. Check logs for failures. There might be failed tests.

详细情况如下:

2019-04-04T13:52:40.2481161Z ##[warning]Unable to parse the override run parameters string: -SpecificDatabaseConnectionName=XXX_TestCI -SpecificDatabaseConnectionIPAddress=10.0.0.119 2019-04-04T13:52:40.2941407Z ##[error]SettingsUpdation.Run : Exception occurred during the updation of run settings: System.FormatException: Error encountered while overriding test run parameters. Please check the test run parameteres provided.

我不确定是什么原因造成的,这对我来说似乎是一个错误,我还需要设置什么才能使这两个选项一起正常工作吗?

更新 1

我的理解是其他用户也遇到过这个问题(每个已删除的答案),我从未测试过以前版本的 TFS,所以我不知道它是特定于 Azure DevOps 还是涵盖其他版本的 TFS。我也不知道这是否是 Azure 托管版本的 DevOps 中的一个问题,我很好奇它是否也受到影响?

它可能是测试步骤中的一个参数,也许 installed on the build agent server, or 涵盖了我 运行 我的测试方式,我已经看到了很多可能导致构建代理失控的事情在过去,我会继续尝试不同的变体,看看我是否能确定这些是否是根本原因。

我想我已经弄清楚了,如果您看到工具提示,我似乎对我如何提供参数感到困惑,是否带有“=”:

没有“=”,现在 google 左右,您会看到 people using them。有趣的是,我之前都使用过没有问题,但是玩这个,我尝试切换到其他格式:

似乎可以解决问题,但不确定原因...