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
Unable to run specific examples from scenarios by file name and line number #238
Comments
Hi @WarioNeila86 and thanks for reporting this issue. It seems to be caused by a bug in Cucumber, which I've reported at cucumber/cucumber-js#1900 |
Hi again @jan-molak, After reviewing this issue again, I have some doubts this is related to that issue reported in Cucumber, let me explain our findings: With this setup, specs are always split by line and we can execute specific examples from scenario outline.
However, when we upgrade
It doesn't matter if we use relative or absolute paths for specs in That's why I'm thinking issue might be related to serenity-js changes in Thanks for your help. |
Hey @WarioNeila86! So the older versions of Versions prior to As an experiment, given
I'd expect the above configuration to fail and run all the scenarios from Would you be able to confirm that, please? Now, I believe that the right way to solve this problem would be to do it at the source and make sure that Cucumber supports both relative and absolute paths. Based on the conversation at cucumber/cucumber-js#1900 it seems like Cucumber 8 will get the fix, but for the older (and now deprecated) versions Serenity/JS would need to work around this. I'll check if I could make the paths relative at the point where Serenity/JS hands them over to Cucumber. |
@WarioNeila86 OK, I think I can work around this. Stay tuned. |
… number they're on Serenity/JS now ensures that any paths to feature files given to Cucumber are relative from Cucumber's current working directory. This helps to work around cucumber/cucumber-js#1900 Re protractor-cucumber-framework/protractor-cucumber-framework#238
Support for running an individual Cucumber scenario, identified by file path and line number closes #238
Support for running an individual Cucumber scenario, identified by file path and line number closes #238
@WarioNeila86 - can you please update to |
Hi @jan-molak, I could finally test this and However, we're now seeing some failures in after hook coming from
I'm always getting 3 or 4 examples failing because of this. I guess this might be unrelated to the original issue reported here, but if you can throw some light or suggest something to check/test here... I'd really appreciate it. I can create a different issue for this if needed. Thanks again! |
You're welcome, thanks for confirming.
Could you please try to fork https://github.com/serenity-js/protractor-cucumber-framework-demo/ and try to reproduce the issue? |
Hi @jan-molak, there seems to be an issue when running specific examples or scenarios by file name & line number in the latest version of
protractor-cucumber-framework
.This is our current setup:
After upgrading
protractor-cucumber-framework
to8.2.11
we're seeing the following issue:Steps to reproduce:
protractor.conf.js
file, specify specs to run asspecs: ['features/dummy.feature:10']
npx protractor protractor.conf.js
Expected result:
Actual result:
After some investigation, this seems to be related to serenity, as we were able to reproduce the issue with the protractor-cucumber-framework-demo from serenity-js project.
Could you review this, please? This is a complete blocker for us.
The text was updated successfully, but these errors were encountered: