FriendsOfBehat / ExcludeSpecificationsExtension

[WIP] :water_buffalo: Allows to skip specific features or scenarios while executing Behat tests.
MIT License
11 stars 6 forks source link

Support for Behat CLI syntax #5

Open pamil opened 8 years ago

pamil commented 8 years ago

features/abc/ - skips a directory features/abc/def.feature - skips a feature feature/abc/def.feature:12 - skips a scenario from a feature feature/abc/def.feature:12-28 - skips scenarios defined in given lines from a feature

Zales0123 commented 8 years ago

My first idea was to propose this configuration:

FriendsOfBehat\SkipExtension:
    features:
        - feature/feature_to_skip.feature
    scenarios:
        - name of scenario to skip
    tags:
        - tag to be skipped

However, Behat CLI syntax would be more natural... What about merging this two ideas together? Just loudly thinking 😄

pamil commented 8 years ago

The problem with scenario names that they can be (and should be) changed more easily than filename of feature. Anyway, that would require some extra work from us.

We should aim to make the right abstraction in order to be able to replace this configuration and skipping logic without much effort.

Zales0123 commented 8 years ago

Totally agreed

loic425 commented 5 years ago

The problem with scenario names that they can be (and should be) changed more easily than filename of feature. Anyway, that would require some extra work from us.

We should aim to make the right abstraction in order to be able to replace this configuration and skipping logic without much effort.

Yes but given lines could change too :)