erikedin / Behavior.jl

Tool for Behavior Driven Development in Julia
Other
25 stars 3 forks source link

Select features and scenarios using tags #70

Open erikedin opened 3 years ago

erikedin commented 3 years ago

One should be able to select which features/scenarios to execute based on the associated tags.

Look up the exact syntax Cucumber uses for selecting scenarios on the command line.

erikedin commented 3 years ago

Cucumber uses a and/or expression, with optional parentheses, like

(@tag1 or @tag2) and (not @tag3)

Pythons Behave uses tags in a slightly different format.

--tags=@one,@ortheother
--tags=-@notthisone
--tags=@this --tags=@andthis

I'm leaning towards Cucumber, simply as it's the most standard. For an initial implementation however, we could restrict ourselves to a single tag.

mkschulze commented 3 years ago

Did we spot such tags in grakn feature or step files?

erikedin commented 3 years ago

I haven't looked carefully, but I know they at least use the @ignore tag in some places, presumably to skip certain scenarios. So, at minimum, we need to support saying not @ignore when running features.

mkschulze commented 3 years ago

I see 👍