Scenario names with long widths affect comment position even if scenario isn't executed #236

Open
JoshRodd opened this Issue Mar 12, 2012 · 0 comments

Comments

Projects
None yet
1 participant

Consider this features file:

Feature: Foo
    Bar
    Baz

    Scenario: 123456789
        Given some step

    Scenario: 123456789 123456789 123456789

Upon executing lettuce -s 1, the longer scenario name will make the lettuce output unpleasantly long, despite no need for the extra space:

$ lettuce -s 1

Feature: Foo                              # features/subscribe_customer.feature:1
  Bar                                     # features/subscribe_customer.feature:2
  Baz                                     # features/subscribe_customer.feature:3

  Scenario: 123456789                     # features/subscribe_customer.feature:5

1 feature (1 passed)
1 scenario (1 passed)
0 step (0 passed)
(finished within 1 seconds)

My expectation is the output would look like this, as if the feature had been removed from the features file:

$ lettuce

Feature: Foo          # features/subscribe_customer.feature:1
  Bar                 # features/subscribe_customer.feature:2
  Baz                 # features/subscribe_customer.feature:3

  Scenario: 123456789 # features/subscribe_customer.feature:5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment