Skip to content

Expose the max number of retries to formatters #71

Open
@jan-molak

Description

@jan-molak

Hey @davidjgoss and @charlierudolph!

Would it be possible to make the information about the max number of retries specified via --retry parameter available to Cucumber formatters?

At the moment Cucumber messages provide information about the current attempt number, for example:

{"testCaseStarted":{"attempt":1,"timestamp":{"seconds":"1609892232","nanos":945000000},"testCaseId":"d6c24ef0-66c4-42f7-a62e-2d6b976a40ff","id":"9b5d1c83-09a3-466d-8c14-e3c2b14918ea"}}

However, they don't tell how many attempts there are left, which makes reporting a bit inconvenient.

Perhaps this information could be added to IFormatterOptions either to the main options object itself or under parsedArgvOptions. I think the behaviour could be similar to how the RerunFormatter works.

Is this a feature you'd be willing to add / review a PR for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions