-
Notifications
You must be signed in to change notification settings - Fork 228
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
Cucumber 5 Jvm api changes support for allure (fixes #414) #418
Conversation
…port new Cucumber Jvm5 changes Signed-off-by: NRao <nrao@flexera.com>
This commit is to fix #414 |
TestSourceModel Java Class is justed copied from current cucumber-jvm project, making it volatile when cucumber-jvm project changes again. |
Hi @TomBAMU : Thanks for reviewing. I did try to use the existing TestSourceModel class. However it was returning an internal gherkin package. I reached out to cucumber developer and they replied the following: We'll be phasing out Gherkin 5 and the internal html formatter at some point in the future after introducing Gherkin 8. The classes you're looking at are an adaptor to make that seemless in the future. So I thought to add the logic of parsing gherkin ast from TestSourceRead event directly in the allure-cucumber5-jvm module. I can refactor the code and just add the basic Ast we need(Feature and ScenarioDefinition Ast). Please let me know your thoughts about what do you think would be the best approach here |
That was a missing information on my side, thanks you! 👍
That sounds like a resonable approach then. |
...umber5-jvm/src/main/java/io/qameta/allure/cucumber5jvm/testsourcemodel/TestSourcesModel.java
Outdated
Show resolved
Hide resolved
allure-cucumber5-jvm/src/main/java/io/qameta/allure/cucumber5jvm/AllureCucumber5Jvm.java
Outdated
Show resolved
Hide resolved
allure-cucumber5-jvm/src/main/java/io/qameta/allure/cucumber5jvm/AllureCucumber5Jvm.java
Outdated
Show resolved
Hide resolved
…port new Cucumber Jvm5 changes. Removed cucumber-core and cucumber-java reference in AllureCucumber5Jvm class and TestSourcesModel class and modified all classes to adhere to checkstyle standards Signed-off-by: NRao <nrao@flexera.com>
Hi @TomBAMU : I have made the changes to TestSourceModel to keep only basic AST now. @mpkorstanje : I have removed the reference to cucumber-core and cucumber-java package in plugin source(Its still present in the module because its still needed for tests) |
Signed-off-by: NRao <nrao@flexera.com>
…nitialization of object to method and simplified instanceof check without null Signed-off-by: NRao <nrao@flexera.com>
@TomBAMU : Can you please check whether the latest commit is fine? |
Thanks @baev for merging this pull request. When can i expect this to be released? |
thanks to you for the contribution.
this week |
Hi @baev, Has it been released yet? I've been waiting for release to use Allure report for Cucumber 5.5.0. Thank you. |
released in 2.13.2 |
Allure Cucumber 5 Jvm Support module Added all relevant files for support Cucumber 5 jvm changes
Signed-off-by: NRao nrao@flexera.com
Context
Checklist