Skip to content

Update allure-cucumber to Cucumber version 8 #1451

Description

@USSQA

What problem should this solve?

Cucumber v8 introduced a number of breaking changes to some internals that currently break allure-cucumber7-jvm, making the latest Cucumber unusable in combination with Allure.

What would you like to happen?

To continue supporting the latest Cucumber version, there needs to be a new allure-cucumber package (maybe allure-cucumber8-jvm) that supports cucumber version 8.x.

Alternatives considered

No response

Additional context

No response

Activity

  1. added theissue type on Sep 29, 2026
  2. RaymondMouthaan commented on Oct 7, 2026

    @RaymondMouthaan

    Thanks for filing this! We're hitting the same issue and wanted to add some details in case they help.

    With allure-cucumber7-jvm 3.0.0 (the latest) and cucumber-bom 8.0.x on cucumber-junit-platform-engine, every scenario errors before it runs:

    java.lang.NoSuchMethodError: 'java.lang.Long io.cucumber.messages.types.Location.getLine()'
        at io.qameta.allure.cucumber7jvm.testsourcemodel.TestSourcesModel.processScenarioDefinition(TestSourcesModel.java:123)
    

    As far as we can tell, Cucumber 8 moves to io.cucumber:messages 34, where Location.getLine() no longer returns java.lang.Long, and the plugin is compiled against the old signature. With cucumber-bom 7.34.9 the same minimal project passes and writes Allure results normally.

    We're staying on Cucumber 7.x for now. Thanks for all your work on Allure! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions