jeudi 11 mars 2021

Cucumber tags chaining

I was thinking about chaining tags

base example from https://cucumber.io/docs/cucumber/api/

@billing
Feature: Verify billing

  @important
  Scenario: Missing product description
    Given hello

  Scenario: Several products
    Given hello

what I would like to do is

@billing
Feature: Verify billing

  @important
  Scenario: Missing product description
    Given hello

  Scenario: Several products
    Given hello please run @important tag 

and all the steps from @important would execute, is that possible? I didn't find any examples in google :( if yes could you help me find some materials?

Stack: JS with cypress-cucumber-preprocessor https://github.com/TheBrainFamily/cypress-cucumber-preprocessor I also looked over all the examples and didn't see anything like that

Thanks for the help :)

Aucun commentaire:

Enregistrer un commentaire