Skip to content

Update docs. MTP: Option '--report-spekt-junit' expects at most 1 argument #233

Description

@evgenyvalavin

> dotnet test -- --report-spekt-junit "key1=value1;key2=value2"

The error is caused by MSBuild, not MTP. When dotnet test processes arguments after --, MSBuild treats semicolons as list separators and splits key1=value1;key2=value2 into two tokens before MTP even sees them.

The fix is to escape the semicolons when invoking: dotnet test -- --report-spekt-junit key1=value1%3Bkey2=value2

%3B is the URL-encoded semicolon that MSBuild passes through literally. MTP then receives the single string key1=value1;key2=value2 and the existing parsing code handles it correctly.

Configuration:
.NET 8
TestingPlatformDotnetTestSupport=true (VSTest mode)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions