Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Cucumber Scenarios causing entire feature files to re-run #112

Open
Phonesis opened this issue Jun 26, 2019 · 4 comments
Open

Failing Cucumber Scenarios causing entire feature files to re-run #112

Phonesis opened this issue Jun 26, 2019 · 4 comments

Comments

@Phonesis
Copy link

This is probably not so much a bug as a feature request perhaps but is it a known limitation that when you try to re-run failing Cucumber Scenarios with flakes it will instead run the entire feature file the failing scenarios(s) reside in?

It would be fantastic if flakes was able to just re-run the failed Scenarios as opposed to the entire feature file. Is this possible?

@NickTomlin
Copy link
Owner

This would be great but I think there are a few pieces:

  1. I think it would require some changes in the core (which would be beneficial to all) that would allow a parser to provide different params/options for the next protractor run:

     // WARNING: PSEUDOCODE
     function cucumberParser (output) {
       const matchingScenarios = /Scenario Failed: (.*)/.match(output)
    
       return {
         // we may need to include both the files _and_ the scenario names
         // I don't know about how cucumber is actually configured
         failedSpecs: [],
         protractorOptions: ['--cucumber.scenarios', matchingScenarios.join(',')]
       }
     }
     // WARNING: PSEUDOCODE
    
  2. I'm not sure how the cucumber configuration would need to look for protractor (since I don't use cucumber myself)

I'm still in year one of a new job and about to welcome a second child into my life so I don't have much bandwidth at the moment. So I would appreciate a PR on either front 😄

@Phonesis
Copy link
Author

Phonesis commented Jul 3, 2019

Thanks Nick, sadly I would have no idea where to start with this being more a C# and Java guy. Be amazing if someone was able to pick this up though

@abubakarafzal
Copy link

i am facing the same issue.
@Phonesis did you resolve this problem?

@Phonesis
Copy link
Author

i am facing the same issue.
@Phonesis did you resolve this problem?

No sadly not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants