class TestBoosters::Boosters::Cucumber

Constants

FILE_PATTERN

Public Class Methods

new() click to toggle source
Calls superclass method TestBoosters::Boosters::Base::new
# File lib/test_boosters/boosters/cucumber.rb, line 7
def initialize
  super(FILE_PATTERN, split_configuration_path, "bundle exec cucumber")
end

Public Instance Methods

after_job() click to toggle source
# File lib/test_boosters/boosters/cucumber.rb, line 15
def after_job
  TestBoosters::InsightsUploader.upload("cucumber", report_path)
end
before_job() click to toggle source
# File lib/test_boosters/boosters/cucumber.rb, line 11
def before_job
  CucumberBoosterConfig::Injection.new(Dir.pwd, report_path).run
end
display_header() click to toggle source
# File lib/test_boosters/boosters/cucumber.rb, line 19
def display_header
  super

  TestBoosters::ProjectInfo.display_ruby_version
  TestBoosters::ProjectInfo.display_bundler_version
  TestBoosters::ProjectInfo.display_cucumber_version
end
report_path() click to toggle source
# File lib/test_boosters/boosters/cucumber.rb, line 27
def report_path
  @report_path ||= ENV["REPORT_PATH"] || "#{ENV["HOME"]}/cucumber_report.json"
end
split_configuration_path() click to toggle source
# File lib/test_boosters/boosters/cucumber.rb, line 31
def split_configuration_path
  ENV["CUCUMBER_SPLIT_CONFIGURATION_PATH"] || "#{ENV["HOME"]}/cucumber_split_configuration.json"
end