bahmutov / cypress-repeat

Run Cypress multiple times in a row
https://glebbahmutov.com/blog/wrap-cypress-using-npm/
37 stars 11 forks source link

Ability to repeat tags with cypress-repeat #28

Open NereaDM opened 2 years ago

NereaDM commented 2 years ago

Our needs We are looking for a tool to retry a failed run in our project execution and i think this one fits our needs.

Our project Our project is using cucumber tags to run tests in cypress. Using the module https://github.com/TheBrainFamily/cypress-cucumber-preprocessor Here an example:

Feature: Test data collection

Background:
    Given the user is logged

@sanity @collection
Scenario: Collection is successfully created
    When the user selects create a new collection
    Then the data collection is created correctly

To run tests we do it like this: ./node_modules/.bin/cypress-tags run -e TAGS='@sanity'

Our problem Apparently cypress-repeat doesn't work with cypress-tags, only with cypress run [commands].

Can you help us or give any hints about this?

Thanks in advance,

bahmutov commented 2 years ago

I’m sorry but I haven’t used cucumber so cannot help with that.

Sent from my iPhone

On Oct 20, 2021, at 05:57, NereaDM @.***> wrote:

 Our needs We are looking for a tool to retry a failed run in our project execution and i think this one fits our needs.

Our project Our project is using cucumber tags to run tests in cypress. Using the module https://github.com/TheBrainFamily/cypress-cucumber-preprocessor Here an example:

Feature: Test data collection

Background: Given the user is logged

@sanity @collection Scenario: Collection is successfully created When the user selects create a new collection Then the data collection is created correctly To run tests we do it like this: ./node_modules/.bin/cypress-tags run -e @.***'

Our problem Apparently cypress-repeat doesn't work with cypress-tags, only with cypress run [commands].

Can you help us or give any hints about this?

Thanks in advance,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.