Skip to content

Table header is optional in the spec, but required in practice #298

@uuf6429

Description

@uuf6429

🤔 What's the problem you've observed?

Hi!

We've been having a bit of a discussion over Examples.tableHeader:

"tableHeader": {

The spec defines it as optional since the beginning.

Whereas tableBody used to be optional and is now required since ce9f289#diff-69252728078b60bf59750707428b38924591264e92497fef90006dd33402e70aR112.

In practice the header is required to be able to replace placeholders effectively: https://cucumber.io/docs/gherkin/reference/#scenario-outline

As far as I can see there are no test fixtures on this case.

✨ Do you have a proposal for making it better?

  1. Would be great to have some consensus:
    1. Should tableHeader also be required?
    2. If not, should we pick the first tableBody row as the header?
  2. and additionally, a test/fixture to disambiguate the situation

📚 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