enkessler / cuke_linter

A linting tool for Cucumber
MIT License
32 stars 8 forks source link

FeatureWithoutScenariosLinter doesn't support Rule #24

Closed sfcgeorge closed 2 years ago

sfcgeorge commented 2 years ago

The FeatureWithoutScenariosLinter fails when a feature does in fact include Scenarios but they are within Rules in the form:

Feature:
  Rule: 
    Scenario: 
  Rule:
    Background:
    Scenario:
    Scenario:

Failure:

FeatureWithoutScenariosLinter
  Feature has no scenarios
enkessler commented 2 years ago

Yep. It looks like that linter was made before CukeModeler had Rule models. It should be a simple enough update to have the linter take those into account, so I should be able to get to it this week. Thanks for the report, @sfcgeorge !

enkessler commented 2 years ago

This should now be fixed in the latest release.

sfcgeorge commented 2 years ago

Amazing, thank you! Next dependency update I'll give it a shot, closing for now 👌