-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i specify specflow tags in nunit console 3 command line options to filter the test scenarios? #306
Comments
By tags are you talking about NUnit categories or are Tags a SpecFlow construct? If the later, you will need to ask there as most of the NUnit team doesn't use SpecFlow. If it is categories, then you can specify using a |
@rprouse Thank you. It is Specflow tags. Sorry to confuse you. But glad that figured out the category from the above link. Thanks |
@honeynair I am going to close this as a question. If you still need NUnit specific help, comment here, we will see it and try to help. |
HI All, Just started using SpecFlow with Nunit have a query listed below Is it possible to execute the selected Tag Scenarios in a Feature File by NUnit console runner For e.g. Consider a feature File as Feature: Login @ie @ie @chrome So, I need to execute all the @ie tagged Scenarios belong to Login Feature by NUnit Console Runner. |
If I understand SpecFlow's documentation correctly, then Tag Scenarios are translated into categories, so you should be able to run them using something like |
@mikkelbu Thank you. |
In that case you need to combine the feature name with the category. How do you select a single feature to run? |
It's ridiculous that this isn't easier to figure out! |
@anilkumar897 if https://stackoverflow.com/a/33920759 is correct then the name of the feature is used as a description in a
|
Thank you so much @mikkelbu. |
Hi All, |
I'm sorry, but I don't have any idea. I think it is better to ask in either the microsoft/vstest project or perhaps nunit/nunit3-vs-adapter, but as far as I know there are some concepts that are not transferred from NUnit to vstest (see e.g. microsoft/vstest#98). |
I am using specflow 2.2.1 and nunit 3 with Visual studio 2015 for selenium testing.
Wanted to run tests based on tags using nunit console say 1 or 2 from a feature files which has got 5 or 6 scenarios.
I have tags like this
@Login @desktop @wip
Feature: Login
This is to test the login functionality of the site
Please help
Thanks
Honey
The text was updated successfully, but these errors were encountered: