Class: TestBoosters::Boosters::Cucumber
- Inherits:
-
Base
- Object
- Base
- TestBoosters::Boosters::Cucumber
show all
- Defined in:
- lib/test_boosters/boosters/cucumber.rb
Constant Summary
collapse
- FILE_PATTERN =
"features/**/*.feature".freeze
Instance Method Summary
collapse
Methods inherited from Base
#distribution, #job_count, #job_index, #run, #show_files_for_dry_run
Constructor Details
Returns a new instance of Cucumber.
7
8
9
|
# File 'lib/test_boosters/boosters/cucumber.rb', line 7
def initialize
super(FILE_PATTERN, nil, split_configuration_path, "bundle exec cucumber")
end
|
Instance Method Details
#before_job ⇒ Object
11
12
13
|
# File 'lib/test_boosters/boosters/cucumber.rb', line 11
def before_job
CucumberBoosterConfig::Injection.new(Dir.pwd, report_path).run
end
|
#report_path ⇒ Object
27
28
29
|
# 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 ⇒ Object
31
32
33
|
# 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
|