net-a-porter-mobile / XCTest-Gherkin

Gherkin syntax for XCTestCase
Apache License 2.0
254 stars 64 forks source link

Feature request - tags for scenarios #179

Open tomleightonstars opened 3 years ago

tomleightonstars commented 3 years ago

Just a quick request, would it be possible implement tagging at a scenario level please? I know it's currently implemented at feature level.

I've spotted there's a PR in for it - https://github.com/net-a-porter-mobile/XCTest-Gherkin/pull/165

Thank you ❤️

deanWombourne commented 3 years ago

Hey - I've merged in that PR (not sure why it wasn't merged months ago!) so that should be on master now - I haven't released it yet because I don't know if there is anything else you need doing to make this work for you?

tomleightonstars commented 3 years ago

Hey @deanWombourne, thanks so much! I guess the only thing would be to know how to use the tags? i.e. where to put them when running the tests so only a sub-section of features/scenarios run?

tomleightonstars commented 3 years ago

it would also be great to know how to avoid running scenarios/features with specific tag(s)

tomleightonstars commented 3 years ago

Hey @deanWombourne, I hope you're well. I've found the '-only-testing' and '-skip-testing' flags on xcodebuild cli commands. I've had a play with trying to get tags to run using these but unsuccessfully, just all scenarios are run. Just wondering if I'm going down the right path with this?

tomleightonstars commented 3 years ago

hey again @deanWombourne, I hope all is well with you! I've had a crack at adding running by tag and seems to work well for me! https://github.com/net-a-porter-mobile/XCTest-Gherkin/pull/185

anandhsonu1994 commented 1 year ago

Hi @tomleightonstars, Can you share command you used to run the scenarios with certain tags?

bsathya-roku commented 1 year ago

@deanWombourne Can you advise when this would be released?