Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Tried running the selenium c# dotnet test with the run settings file from the Terminal mac os. Facing MSBUILD : error MSB1001: Unknown switch.

Framework used is NUnit 3.x

dotnet test --settings config.runsettings 
--TestRunParameters.Parameter\(name=\"d\",\ value=\"Firefox\"\)

MSBUILD : error MSB1001: Unknown switch. Switch: --TestRunParameters.Parameter(name=d, value=Firefox)

For switch syntax, type "MSBuild -help"

I'd expect TestRunParameters to be in config.runsettings, not specified on the command line. – Jon Skeet Dec 1, 2020 at 18:50 I want to run the TestRunParameters at the run time.Say I need to pass Chrome from the command line @JonSkeet – Rajesh G Dec 1, 2020 at 18:51 @jdweng - That's how it was specified in the github.com/Microsoft/vstest-docs/blob/master/docs/… – Rajesh G Dec 1, 2020 at 18:53

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.