Class: FlakeySpecCatcher::UserConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/flakey_spec_catcher/user_config.rb

Overview

rubocop:disable Metrics/ClassLength

Constant Summary collapse

USER_CONFIG_ENV_VARS =
%w[FSC_REPEAT_FACTOR FSC_IGNORE_FILES FSC_IGNORE_BRANCHES
FSC_SILENT_MODE FSC_RERUN_FILE_ONLY FSC_USAGE_PATTERNS
FSC_EXCLUDED_TAGS FSC_OUTPUT_FILE].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli_override: CliOverride.new) ⇒ UserConfig

Returns a new instance of UserConfig.



20
21
22
23
24
# File 'lib/flakey_spec_catcher/user_config.rb', line 20

def initialize(cli_override: CliOverride.new)
  apply_env_var_settings
  @cli_override = cli_override
  override_settings
end

Instance Attribute Details

#enable_runsObject (readonly)

Returns the value of attribute enable_runs.



14
15
16
# File 'lib/flakey_spec_catcher/user_config.rb', line 14

def enable_runs
  @enable_runs
end

#excluded_tagsObject (readonly)

Returns the value of attribute excluded_tags.



12
13
14
# File 'lib/flakey_spec_catcher/user_config.rb', line 12

def excluded_tags
  @excluded_tags
end

#ignore_branchesObject (readonly)

Returns the value of attribute ignore_branches.



11
12
13
# File 'lib/flakey_spec_catcher/user_config.rb', line 11

def ignore_branches
  @ignore_branches
end

#ignore_filesObject (readonly)

Returns the value of attribute ignore_files.



11
12
13
# File 'lib/flakey_spec_catcher/user_config.rb', line 11

def ignore_files
  @ignore_files
end

#manual_rerun_patternsObject (readonly)

Returns the value of attribute manual_rerun_patterns.



13
14
15
# File 'lib/flakey_spec_catcher/user_config.rb', line 13

def manual_rerun_patterns
  @manual_rerun_patterns
end

#manual_rerun_usageObject (readonly)

Returns the value of attribute manual_rerun_usage.



13
14
15
# File 'lib/flakey_spec_catcher/user_config.rb', line 13

def manual_rerun_usage
  @manual_rerun_usage
end

#output_fileObject (readonly)

Returns the value of attribute output_file.



14
15
16
# File 'lib/flakey_spec_catcher/user_config.rb', line 14

def output_file
  @output_file
end

#repeat_factorObject (readonly)

Returns the value of attribute repeat_factor.



11
12
13
# File 'lib/flakey_spec_catcher/user_config.rb', line 11

def repeat_factor
  @repeat_factor
end

#rerun_file_onlyObject (readonly)

Returns the value of attribute rerun_file_only.



12
13
14
# File 'lib/flakey_spec_catcher/user_config.rb', line 12

def rerun_file_only
  @rerun_file_only
end

#rspec_usage_patternsObject (readonly)

Returns the value of attribute rspec_usage_patterns.



12
13
14
# File 'lib/flakey_spec_catcher/user_config.rb', line 12

def rspec_usage_patterns
  @rspec_usage_patterns
end

#silent_modeObject (readonly)

Returns the value of attribute silent_mode.



11
12
13
# File 'lib/flakey_spec_catcher/user_config.rb', line 11

def silent_mode
  @silent_mode
end