Sha256: fd9bea2f6d3ae5f7c2ceb5c9b6d7349e27c373092d606aad16698bd93bb6fd6a

Contents?: true

Size: 663 Bytes

Versions: 4

Compression:

Stored size: 663 Bytes

Contents

require 'cuke_sniffer'

def path_to_features
  @_path_to_features ||= File.expand_path(File.join(__dir__, '..', 'features'))
end

def cuke_sniffer
  @_cuke_sniffer ||= CukeSniffer::CLI.new(
    features_location: path_to_features,
    step_definitions_location: File.join(path_to_features, 'step_definitions'),
    hooks_location: File.join(path_to_features, 'support'),
    no_catalog: false
  )
end

desc 'Generate cuke_sniffer reports'
task :cuke_sniffer do
  FileUtils.mkdir_p(Howitzer.log_dir)
  cuke_sniffer.output_html("#{Howitzer.log_dir}/cuke_sniffer_results.html")
  cuke_sniffer.output_min_html("#{Howitzer.log_dir}/min_cuke_sniffer_results.html")
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
howitzer-2.1.1 generators/cucumber/templates/cuke_sniffer.rake
howitzer-2.1.0 generators/cucumber/templates/cuke_sniffer.rake
howitzer-2.0.3 generators/cucumber/templates/cuke_sniffer.rake
howitzer-2.0.2 generators/cucumber/templates/cuke_sniffer.rake