enkessler / cuke_linter

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

Add Test Name With Too Many Characters linter #23

Closed PavloKura closed 2 years ago

PavloKura commented 2 years ago

Hope everything is good but im not sure about the rspec part... Copied from 'StepWithTooManyCharactersLinter' so everything is similar to this one

enkessler commented 2 years ago

Unlike the StepWithTooManyCharactersLinter that you based the spec file on, TestNameWithTooManyCharactersLinter lints multiple models types. So you'll need to test against each type of model that it lints. You can see an example of doing that here

https://github.com/enkessler/cuke_linter/blob/74a78d94a1f68bbb3f96fc5951c61e9c34a3e1ce/testing/rspec/spec/unit/linters/test_with_no_name_linter_unit_spec.rb#L12-L25

enkessler commented 2 years ago

@PKuravskyi I got the rest of it sorted out.

PKuravskyi commented 2 years ago

@enkessler Thank you!