dkornishev / dherkin

Cucumber gherkin runtime for dart
BSD 2-Clause "Simplified" License
8 stars 5 forks source link

Fixed width formatting #14

Open dkornishev opened 10 years ago

dkornishev commented 10 years ago

Add fixed width string formatting so that src/line number string align

Goutte commented 10 years ago

Are you more 80 or 120 ? What will happen to tabulations ?

I use both, it depends on the project. For a cli runner, 80 makes more sense.

Feature: Fixed Width Formatting

  Scenario: Tabulations
    Given I have tabulation indentation in my gherkin file
     Then the output buffer should contain tabulations too, OR
     Then the output buffer should have 2 spaces indentation
      And the Given/When/Then/And should be right-aligned.

  Scenario: Overlong step definitions
    Given I have a passing stepdef that in itself is longer than 80 characters, just because.
     Then the output buffer of the above stepdef should look like :
"""
???
"""

To cover all uses-cases, specs will be useful, see #20 .

dkornishev commented 10 years ago

I use 240

2014-06-22 13:12 GMT-04:00 Antoine Goutenoir notifications@github.com:

Are you more 80 or 120 ? What will happen to tabulations ?

I use both, it depends on the project. For a cli runner, 80 makes more sense.

Feature: Fixed Width Formatting Scenario: Tabulations Given I have tabulation indentation in my gherkin file Then the output buffer should contain tabulations too, OR Then the output buffer should have 2 spaces indentation And the Given/When/Then/And should be right-aligned. Scenario: Overlong step definitions Given I have a passing stepdef that in itself is longer than 80 characters, just because. Then the output buffer of the above stepdef should look like :"""???"""

To cover all uses-cases, specs will be useful, see #20 https://github.com/dkornishev/dherkin/issues/20 .

— Reply to this email directly or view it on GitHub https://github.com/dkornishev/dherkin/issues/14#issuecomment-46786692.