I am following guidelines from MSDN - Configure unit tests by using a .runsettings file.
I have created Default.runsettings in my solution, since I use a script to run my tests, I need to specify the settings file in MSTest.exe commandline.
However, according to MSDN Doc, I have option /testsettings, but this is to specify a .testsettings file which is the old way as described in the first page I linked.
How to specify a .runsettings file for MSTest command line?
Thanks
Mstest.exe is the old way to run tests from the command line. You should be using vstest.console.exe.
VSTest.Console.Exe takes a /Settings:[ file name ] command line argument which should be a .runsettings file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With