Sha256: 1cf202ff8931d9d56463550c7d48ac4f335e6aa20169b8c1cc5e85ee35a598b7
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
Feature: Missing Verification As a Business Analyst I want that each test contains at least one verification so that I'm sure that the behavior of the system is tested Background: Prepare Testee Given a file named "lint.rb" with: """ $LOAD_PATH << '../../lib' require 'gherkin_lint' linter = GherkinLint::GherkinLint.new linter.enable %w(MissingVerification) linter.set_linter linter.analyze 'lint.feature' exit linter.report """ @disableBadScenarioName Scenario: Missing Verification Given a file named "lint.feature" with: """ Feature: Test Scenario: A Given setup When test """ When I run `ruby lint.rb` Then it should fail with exactly: """ MissingVerification - No verification step lint.feature (2): Test.A """ Scenario: Valid Example Given a file named "lint.feature" with: """ Feature: Test Scenario: A Given setup When action Then verification """ When I run `ruby lint.rb` Then it should pass with exactly: """ """ Scenario: Empty Scenario Given a file named "lint.feature" with: """ Feature: Test Scenario: A """ When I run `ruby lint.rb` Then it should pass with exactly: """ """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gherkin_lint-1.2.2 | features/missing_verification.feature |
gherkin_lint-1.2.1 | features/missing_verification.feature |
gherkin_lint-1.1.0 | features/missing_verification.feature |