Search code examples
nunit-3.0runsettings

nunit3 inline runsettings args fail to parse on Mac


please, can anyone tell what format should I use to pass runsettings args to test? According to their example, it should be:

dotnet test -- TestRunParameters.Parameter(name=\"<name>\", value=\"<value>\")

but this way it ends with an error:

zsh: parse error near `)'

It looks like, it's a bug, but how come, that I can define such args in Rider and it works (I don't think, they create temporary .runsettings file)?

Thanks a lot


Solution

  • Accidentally, I found the answer here.

    Format should be like this (for bash):

    dotnet test -- TestRunParameters.Parameter\(name=\"myParam\",\ value=\"value\"\)