jeudi 4 avril 2019

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

I have a release definition where I want to use both the "Override Parameters" and "Rerun Failed Tests" in the same step, this looks something like this:

enter image description here

enter image description here

When I have just the override parameters specified everything work fine no issue. When I enable the "Rerun Failed Tests" option though I get the following error in my release:

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\2.143.8\Modules\DTAExecutionHost.exe failed with return code: 1 Vstest failed with error. Check logs for failures. There might be failed tests.

In detail it looks like this:

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.

I'm not sure what's causing this, it just seems like a bug to me, is there anything else I need to set to make these two options work together correctly?

Aucun commentaire:

Enregistrer un commentaire