Class: FlakeySpecCatcher::UserConfig
- Inherits:
-
Object
- Object
- FlakeySpecCatcher::UserConfig
- Defined in:
- lib/flakey_spec_catcher/user_config.rb
Overview
UserConfig class Captures user-defined settings to configure RSpec re-run settings.
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 FSC_LIST_CHILD_SPECS FSC_RANDOM_TIMING].freeze
Instance Attribute Summary collapse
-
#break_on_first_failure ⇒ Object
readonly
Returns the value of attribute break_on_first_failure.
-
#dry_run ⇒ Object
readonly
Returns the value of attribute dry_run.
-
#enable_runs ⇒ Object
readonly
Returns the value of attribute enable_runs.
-
#excluded_tags ⇒ Object
readonly
Returns the value of attribute excluded_tags.
-
#ignore_branches ⇒ Object
readonly
Returns the value of attribute ignore_branches.
-
#ignore_files ⇒ Object
readonly
Returns the value of attribute ignore_files.
-
#list_child_specs ⇒ Object
readonly
Returns the value of attribute list_child_specs.
-
#manual_rerun_patterns ⇒ Object
readonly
Returns the value of attribute manual_rerun_patterns.
-
#manual_rerun_usage ⇒ Object
readonly
Returns the value of attribute manual_rerun_usage.
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
-
#random_timing ⇒ Object
readonly
Returns the value of attribute random_timing.
-
#repeat_factor ⇒ Object
readonly
Returns the value of attribute repeat_factor.
-
#rerun_file_only ⇒ Object
readonly
Returns the value of attribute rerun_file_only.
-
#rspec_usage_patterns ⇒ Object
readonly
Returns the value of attribute rspec_usage_patterns.
-
#silent_mode ⇒ Object
readonly
Returns the value of attribute silent_mode.
-
#split_index ⇒ Object
readonly
Returns the value of attribute split_index.
-
#split_nodes ⇒ Object
readonly
Returns the value of attribute split_nodes.
-
#test_options ⇒ Object
readonly
Returns the value of attribute test_options.
-
#use_parent ⇒ Object
readonly
Returns the value of attribute use_parent.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(cli_override: CliOverride.new) ⇒ UserConfig
constructor
A new instance of UserConfig.
Constructor Details
#initialize(cli_override: CliOverride.new) ⇒ UserConfig
Returns a new instance of UserConfig.
19 20 21 22 23 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 19 def initialize(cli_override: CliOverride.new) apply_env_var_settings @cli_override = cli_override override_settings end |
Instance Attribute Details
#break_on_first_failure ⇒ Object (readonly)
Returns the value of attribute break_on_first_failure.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def break_on_first_failure @break_on_first_failure end |
#dry_run ⇒ Object (readonly)
Returns the value of attribute dry_run.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def dry_run @dry_run end |
#enable_runs ⇒ Object (readonly)
Returns the value of attribute enable_runs.
10 11 12 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 10 def enable_runs @enable_runs end |
#excluded_tags ⇒ Object (readonly)
Returns the value of attribute excluded_tags.
10 11 12 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 10 def end |
#ignore_branches ⇒ Object (readonly)
Returns the value of attribute ignore_branches.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def ignore_branches @ignore_branches end |
#ignore_files ⇒ Object (readonly)
Returns the value of attribute ignore_files.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def ignore_files @ignore_files end |
#list_child_specs ⇒ Object (readonly)
Returns the value of attribute list_child_specs.
12 13 14 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 12 def list_child_specs @list_child_specs end |
#manual_rerun_patterns ⇒ Object (readonly)
Returns the value of attribute manual_rerun_patterns.
10 11 12 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 10 def manual_rerun_patterns @manual_rerun_patterns end |
#manual_rerun_usage ⇒ Object (readonly)
Returns the value of attribute manual_rerun_usage.
10 11 12 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 10 def manual_rerun_usage @manual_rerun_usage end |
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
10 11 12 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 10 def output_file @output_file end |
#random_timing ⇒ Object (readonly)
Returns the value of attribute random_timing.
12 13 14 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 12 def random_timing @random_timing end |
#repeat_factor ⇒ Object (readonly)
Returns the value of attribute repeat_factor.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def repeat_factor @repeat_factor end |
#rerun_file_only ⇒ Object (readonly)
Returns the value of attribute rerun_file_only.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def rerun_file_only @rerun_file_only end |
#rspec_usage_patterns ⇒ Object (readonly)
Returns the value of attribute rspec_usage_patterns.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def rspec_usage_patterns @rspec_usage_patterns end |
#silent_mode ⇒ Object (readonly)
Returns the value of attribute silent_mode.
9 10 11 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 9 def silent_mode @silent_mode end |
#split_index ⇒ Object (readonly)
Returns the value of attribute split_index.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def split_index @split_index end |
#split_nodes ⇒ Object (readonly)
Returns the value of attribute split_nodes.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def split_nodes @split_nodes end |
#test_options ⇒ Object (readonly)
Returns the value of attribute test_options.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def end |
#use_parent ⇒ Object (readonly)
Returns the value of attribute use_parent.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def use_parent @use_parent end |
#verbose ⇒ Object (readonly)
Returns the value of attribute verbose.
11 12 13 |
# File 'lib/flakey_spec_catcher/user_config.rb', line 11 def verbose @verbose end |