Sha256: 9d9ce7ef296a6d1aafc6502de2578ed43c6794ebeea8be0e2d06034aa04584f5

Contents?: true

Size: 448 Bytes

Versions: 14

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

require 'chutney/linter'

module Chutney
  # service class to lint for missing verifications
  class MissingVerification < Linter
    def lint
      filled_scenarios do |feature, scenario|
        then_steps = scenario.steps.select { |step| then_word?(step.keyword) }
        next unless then_steps.empty?

        add_issue(I18n.t('linters.missing_test_verification'), feature, scenario)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
chutney-3.9.0 lib/chutney/linter/missing_verification.rb
chutney-3.8.2 lib/chutney/linter/missing_verification.rb
chutney-3.8.1 lib/chutney/linter/missing_verification.rb
chutney-3.8.0 lib/chutney/linter/missing_verification.rb
chutney-3.7.0 lib/chutney/linter/missing_verification.rb
chutney-3.6.0 lib/chutney/linter/missing_verification.rb
chutney-3.5.0 lib/chutney/linter/missing_verification.rb
chutney-3.3.0 lib/chutney/linter/missing_verification.rb
chutney-3.2.1 lib/chutney/linter/missing_verification.rb
chutney-3.2.0 lib/chutney/linter/missing_verification.rb
chutney-3.1.1 lib/chutney/linter/missing_verification.rb
chutney-3.1.0 lib/chutney/linter/missing_verification.rb
chutney-3.0.1 lib/chutney/linter/missing_verification.rb
chutney-3.0.0 lib/chutney/linter/missing_verification.rb