Skip to content

With cucumber integration tests not counted in total test summary in surefire-plugin 3.5.3 #834

@jamshidCo

Description

@jamshidCo

Affected version

3.5.3

Bug description

Hello,
Using JDK:

  • openjdk 21.0.5 2024-10-15 LTS
  • Apache Maven 3.9.9
  • maven surfire plugin

Issue

When running integration tests using cucumber-junit-platform-engine with maven-surefire-plugin version 3.5.3, the tests are executed and the logs are printed, but the final test summary says:

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

This behavior does not happen in version 3.5.2 — in that version, Cucumber integration tests are correctly counted in the final summary — even though Cucumber scenarios are technically not individual JUnit test methods.

But in version 3.5.3, this seems to have changed:

  • Tests still run
  • Output/logs appear
  • But Tests run: 0 appears at the end
    ➤ That can mess with CI pipelines or give misleading reports.

Expected Behavior

The final summary should include the number of Cucumber scenarios executed (like in 3.5.2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions