antham / ghokin

Parallelized formatter with no external dependencies for gherkin (cucumber, behat...)
MIT License
43 stars 5 forks source link

Formatting empty scenarios removes them #59

Closed DavertMik closed 3 years ago

DavertMik commented 3 years ago

Thanks for the great formatter! We faced one issue with removing empty scenarios. Unfortunately, I don't know Go so I can't make PR for this

Feature file:

Feature: A suite 1

Scenario: asdsad asdsad asdsad
  Given the user disconnects the water

Scenario: as 123 dsad
Scenario: adsad 
Scenario: asds asdsa ad

Result:

Feature: A suite 1

  Scenario: asdsad asdsad asdsad
    Given the user disconnects the water

  Scenario: as 123 dsad
antham commented 3 years ago

Hi thanks for reporting.

I see where the problem is, I'm going to fix that when I will have a bit of time.

Cheers.

antham commented 3 years ago

Here we go => https://github.com/antham/ghokin/releases/tag/v1.6.2 @DavertMik

DavertMik commented 3 years ago

Thank you very much! :heart: