I am using SpecFlow to write Gherkin for automated UI tests. We have multiple tags (@smoke, @on, @off, etc.).
Test A has tags @smoke Test B has tags @smoke @off
These are translated to vstest test categories and do not include the @ symbol.
I want to run test A but not test B.
This is what is not working. It runs all @smoke tests.
Vstest.console.exe mytest.dll /TestCaseFilter:"TestCategory=smoke&TestCategory!=off"
Any ideas?
Visual Studio includes the VSTest and MSTest command-line tools for testing purposes. We can use both VSTEST and MSTEST to run automated unit and coded UI tests from a command line. 1.
I had two issues.
Vstest.console.exe mytest.dll /TestCaseFilter:"(TestCategory=smoke&TestCategory!=off)"
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