I have been using MsTest.exe to run tests using the namespace like this:
mstest.exe /testcontainer:"MyDllFile.dll" /test:"NameSpace.Folder.Folder1.*"
This worked like a charm but I needed to be able to pass parameters at runtime to my tests, so I found the *.runsetttings file and its capability to pass parameters to a test using RunTestParameters and getting them from the properties in the TestContext but the downside is that I have to be very specific as to what test(s) I want to run and have to give it the a specific method name or names separated by commas to execute the tests as it is shown below:
vstest.console.exe "MyDllFile.dll" /Settings:"my.runsettings" /Tests:"TestMethod1,TestMethod2"
I also tried the TestCaseFilter with no luck either:
vstest.console.exe "vstest.console.exe "MyDllFile.dll" /Settings:"my.runsettings" /TestCaseFilter:"TestCategory=MyTestCategory"
Does anyone one have a suggestion as to how can I accomplish what I was able to do with mstest.exe with vstest.console.exe?
Thanks!!