Allure doesn't work with Cucumber 8.x
Maintainer thường phản hồi trong vòng 8 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
The stack trace points to TestSourcesModel.java: processScenarioDefinition (around line 123) calls Location.getLine(), which fails with NoSuchMethodError after the move to Cucumber 8.0.4. Start by reproducing with allure-cucumber7-jvm 3.0.0 against Cucumber 8.0.4, then check how the Cucumber messages Location type is used in processFeatureDefinition and parseGherkinSource. Done means the Gherkin source model builds on Cucumber 8 without the NoSuchMethodError and the existing tests pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
I started getting this error after upgrading Cucumber to 8.0.4 and allure-cucumber7-jvm to 3.0.0.
'java.lang.Long io.cucumber.messages.types.Location.getLine()'
java.lang.NoSuchMethodError: 'java.lang.Long io.cucumber.messages.types.Location.getLine()'
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.processScenarioDefinition(TestSourcesModel.java:123)
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.lambda$processFeatureDefinition$1(TestSourcesModel.java:103)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.processFeatureDefinition(TestSourcesModel.java:103)
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.parseGherkinSource(TestSourcesModel.java:94)
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.getFeature(TestSourcesModel.java:58)
at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModelProxy.getFeature(TestSourcesModelProxy.java:64)
at io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm.handleTestCaseStarted(AllureCucumber7Jvm.java:183)
at io.cucumber.core.eventbus.AbstractEventPublisher.send(AbstractEventPublisher.java:61)
at io.cucumber.core.eventbus.AbstractEventBus.send(AbstractEventBus.java:22)
at io.cucumber.core.runtime.SynchronizedEventBus.send(SynchronizedEventBus.java:47)
at io.cucumber.core.runner.TestCase.emitTestCaseStarted(TestCase.java:233)
at io.cucumber.core.runner.TestCase.run(TestCase.java:80)
at io.cucumber.core.runner.Runner.runPickle(Runner.java:91)
at io.cucumber.junit.platform.engine.CucumberEngineExecutionContext.lambda$runTestCase$4(CucumberEngineExecutionContext.java:120)
at io.cucumber.core.runtime.CucumberExecutionContext.lambda$runTestCase$8(CucumberExecutionContext.java:149)
at io.cucumber.core.runtime.RethrowingThrowableCollector.executeAndThrow(RethrowingThrowableCollector.java:24)
at io.cucumber.core.runtime.CucumberExecutionContext.runTestCase(CucumberExecutionContext.java:149)
at io.cucumber.junit.platform.engine.CucumberEngineExecutionContext.runTestCase(CucumberEngineExecutionContext.java:117)
at io.cucumber.junit.platform.engine.CucumberTestDescriptor$PickleDescriptor.execute(CucumberTestDescriptor.java:308)
at io.cucumber.junit.platform.engine.CucumberTestDescriptor$PickleDescriptor.execute(CucumberTestDescriptor.java:249)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
What Allure Integration are you using?
allure-cucumber7-jvm
What version of Allure Integration you are using?
3.0.0
What version of Allure Report you are using?
3.0.0
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- Java
- Star
- 390
- Fork
- 243
- Merge trung bình
- 8 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của allure-framework/allure-java
-
AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementationCó thể đã có người làm @USSQA đã nhận 32 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
allure-framework/allure-java#1439 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.stepĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
allure-framework/allure-java#1453 · 1 reaction ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
allure-framework/allure-java#1452 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
allure-framework/allure-java#1451 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
allure-framework/allure-java#1446 ·
Maintainer thường phản hồi trong vòng 8 ngày
Tất cả issue của allure-framework/allure-java
Issue tương tự
-
pdfium-drift
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Stirling-Tools/JPDFium#176 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hiero-ledger/hiero-consensus-node#27712 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
Vakore/ZappierGames#162 ·
-
Improve README documentation clarity and fix minor wording issuesCó thể đã có người làm @simplesilence đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
resilience4j/resilience4j#2567 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Priority/High
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
wso2/dpdp-accelerator#417 ·
Maintainer thường phản hồi trong vòng 1 ngày