Class: CucumberBoosterConfig::CucumberFile
- Inherits:
-
Object
- Object
- CucumberBoosterConfig::CucumberFile
- Defined in:
- lib/cucumber_booster_config/cucumber_file.rb
Constant Summary collapse
- DEFAULT_PROFILE =
"default: --format pretty --profile semaphoreci features"
Instance Method Summary collapse
- #configure_for_autoparallelism(report_path) ⇒ Object
-
#initialize(path, dry_run) ⇒ CucumberFile
constructor
A new instance of CucumberFile.
Constructor Details
#initialize(path, dry_run) ⇒ CucumberFile
Returns a new instance of CucumberFile.
7 8 9 10 |
# File 'lib/cucumber_booster_config/cucumber_file.rb', line 7 def initialize(path, dry_run) @path = path @dry_run = dry_run end |
Instance Method Details
#configure_for_autoparallelism(report_path) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/cucumber_booster_config/cucumber_file.rb', line 12 def configure_for_autoparallelism(report_path) load_file_content if dry_run? puts "Content before:" puts "---" puts @original_lines puts "---" end unless semaphore_profile_defined? && semaphore_profile_included? define_semaphore_profile(report_path) include_semaphore_profile end if dry_run? puts "Content after:" puts "---" puts @new_lines puts "---" else save_file end end |