cucumber / cucumber/cucumber-ruby

The pretty formatter does not report rules

Open
#1,547 7 comments 0 reactions 0 assignees View on GitHub
:bank: debt :bug: bug :white_check_mark: accepted
Dominant language
Ruby
Stars
5.2k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
3

Description

From a Slack conversation here: https://cucumberbdd.slack.com/archives/C7676D8GN/p1622078810002700

When running `$ cucumber --format pretty` on a file that uses the “Rule” keyword, with Cucumber 6, should I be seeing the Rules print out to the console along with the Features and Scenarios? I have my file formatted like this:
```gherkin
Feature: ...
Rule: ...
Scenario: ...
Given
When
Then
```

But I am not seeing the Rules print out to the console.

Note: the pretty formatter is hard to maintain

Suggestion: having the pretty formatter rewritten into the monorepo to use shared testdata and have a consistent behavior in different languages.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cucumber --format pretty` with the Gherkin example containing a Rule, then trace the pretty formatter's output path. Done means the Rule is printed alongside the Feature and Scenario; the broader rewrite suggestion would also require shared test data and consistent behavior across languages.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.