I have to execute automation tests from Jenkins and I want to pass parameters such as Environment and InstanceID. How do I pass it along with the Dotnet test command? I am using the NUnit Dotnet core framework and using the app.config/web.config file to pass all the parameters in the code. We don't use the runsetting file. Is there any way to pass the parameter in the Dotnet test command. Here's the command i am using currently:
dotnet test --filter TestCategory=RegressionTest --logger:"trx;logFileName=%WORKSPACE%\Build%BUILD_NUMBER%TestResults.trx"