Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pbezglasny
Copy link
Contributor

@pbezglasny pbezglasny commented Jan 29, 2025

Added support of scenario description(issue in cucumber)

In the current implementation, a description moves right at each run of format. Due to this, each run of ghokin check returns a false result.
Now, a scenario description has indent the same as a scenario.
E.g. each run of format will produce the next result

Feature: A feature

  Scenario: Scenario name
  Scenario description
    Given a thing

  Scenario: Scenario name
  """
  Triple quotes first line
  Triple quotes second line
  """
    Given a thing

  Rule: A rule
    Scenario: Scenario name
    Rule scenario description
      Given a thing

fixes #152

@codecov
Copy link

codecov bot commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.61%. Comparing base (664f227) to head (f341d07).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
+ Coverage   89.43%   89.61%   +0.17%     
==========================================
  Files          14       14              
  Lines         606      616      +10     
==========================================
+ Hits          542      552      +10     
  Misses         49       49              
  Partials       15       15              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antham antham merged commit 3f206a8 into antham:master Feb 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scenario description field infinite formatting

2 participants