Skip to content

Missing top level tags #24

@badeball

Description

@badeball

👓 What did you see?

With v2, top level tags are missing. "Current" behavior, ie. with @cucumber/cucumber@12.1.0, before the cucumber/cucumber-js#2629, ie. with the most recent message-based implementation:

$ cucumber-js

Feature: a feature

  @foo
  Example: an example # features/foo.feature:6
    ✔ Given a step    # features/definitions.js:3

✅ What did you expect to see?

Expect to see @foo\nFeature: [..], as shown below, using non-message based implementation.

$ cucumber-js
@foo
Feature: a feature # features/foo.feature:2

  foobar

  @foo
  Example: an example # features/foo.feature:6
    Given a step

1 scenario (1 passed)
1 step (1 passed)
0m00.004s (executing steps: 0m00.000s)

📦 Which tool/library version are you using?

node v20.19.4
@cucumber/cucumber v12.1.0

🔬 How could we reproduce it?

Simple repository to run & view everything mentioned above: https://github.com/badeball/reproducible-issues/tree/master/cucumber/pretty-regressions

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions