Dotnet test - command arguments extra --

Attempting to use the dotnet test command and it seems that the test runner arguments are being inserted after a "-- ". We jokingly tried to get around it by turning off no-build and adding a "no-build " as the first argument… but because of the space this doesn’t work. I assume this is being added erroneously? you can see below the full command, and the issue is after --verbosity normal --.

Thanks!

Arguments: test “D:\CI_AWS\Ws\101\3 - Development\Team\Dev1\Services\ADT Modification Service\Source\UnitTests\UnitTests.csproj” --configuration Debug --no-build --verbosity normal – /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

Hi aszuul,

The Test Runner Arguments field is the equivalent of the RunSettings in the dotnet test command line which is used to pass arguments to the test runner. As you can see in the documentation, these arguments should be prefixed with --.

The properties /p:CollectCoverage=true /p:CoverletOutputFormat=opencover are extra arguments to dotnet test used by the Coverlet code coverage library. They are not listed in the dotnet test documentation and have therefore not been included in this action.

We’ll look into what fields we can add to the action to allow you to include these additional properties today.

1 Like