dotnet-test-rerun
dotnet-test-rerun copied to clipboard
Missing option to override TestRunParameters
My tests will only run when a certain TestRunParameter in the runssettings file is overriden with a value generated in a pipeline (a token in this case). This option is missing from the dotnet-test-rerun tool, but is possible with dotnet test
using the following syntax:
# cmd
dotnet test -- TestRunParameters.Parameter(name=\"myParam\", value=\"value\")
This is not well documented unfortunately (and this overlooked easily ;), this page on dotnet test options: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test#options links (last line of the options segment) to another page: https://github.com/Microsoft/vstest-docs/blob/main/docs/RunSettingsArguments.md where the snippet above can be found.
Is it possible to add this to the dotnet-test-rerun tool? Would be much appreciated. I really need rerun functionality, I have a working powershell script for this after some work, but I think your tool would be a much better solution.