Skip to content

mergeFeaturesWithRetest option in Jenkins cucumber-report plugin does not work #460

@tarasmytlovych

Description

@tarasmytlovych

Jenkins and plugins versions report

Environment
cucumber-reports:5.8.0

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux Ubuntu, playwright

Reproduction steps

Plugin configs:

cucumber buildStatus: "UNSTABLE",
fileIncludePattern: '**/*.json',
jsonReportDirectory: 'ui-tests/target/test-results',
skipEmptyJSONFiles: true,
pendingAsNotFailingStatus: true,
mergeFeaturesById: true,
mergeFeaturesWithRetest: true,
sortingMethod: 'ALPHABETICAL',
classifications: [
[
'key' : 'Environment',
'value': 'QA'
]
]

tests run generates 2 json files:
cucumber.json and cucumber-rerun.json

Expected Results

When test is passed during rerun, in report it should be shown once, the latest attempt and the pipeline should not fail because of the first attempt failure

Actual Results

The scenario is shown in the report twice, failed and passed tries
Pipeline is marked as failed even though all failed tests have passed after the rerun

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions