Sha256: 88b990d759f34a6e1064478dcbb5b0bfadcc06a06e6b3d2a20c2450a319357d4
Contents?: true
Size: 1.28 KB
Versions: 18
Compression:
Stored size: 1.28 KB
Contents
Feature: Bad Scenario Name As a Business Analyst I want to be warned about invalid scenario names so that I am able to look for better naming Background: Prepare Testee Given a file named "lint.rb" with: """ $LOAD_PATH << '../../lib' require 'gherkin_lint' linter = GherkinLint::GherkinLint.new linter.enable %w(BadScenarioName) linter.analyze 'lint.feature' exit linter.report """ Scenario Outline: Bad Scenario Names Given a file named "lint.feature" with: """ Feature: Test Scenario: <bad word> something """ When I run `ruby lint.rb` Then it should fail with exactly: """ BadScenarioName - Prefer to rely just on Given and When steps when name your scenario to keep it stable lint.feature (2): Test.<bad word> something """ Examples: Words to avoid | bad word | | Verifies | | Verification | | Verify | | Checks | | Check | | Tests | | Test | Scenario: Valid Example Given a file named "lint.feature" with: """ Feature: Test Scenario: Suitable Scenario Name """ When I run `ruby lint.rb` Then it should pass with exactly: """ """
Version data entries
18 entries across 18 versions & 1 rubygems