Class: FlakeySpecCatcher::CliOverride

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

Overview

CliOverride class

Captures command line arguments for manual re-runs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCliOverride

Returns a new instance of CliOverride.



13
14
15
16
17
18
19
20
21
22
# File 'lib/flakey_spec_catcher/cli_override.rb', line 13

def initialize
  @dry_run = false
  @enable_runs = true
  @excluded_tags = []
  @use_parent = false
  @verbose = false
  @test_options = []
  parse_command_line_args
  validate_arguments
end

Instance Attribute Details

#dry_runObject (readonly)

Returns the value of attribute dry_run.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def dry_run
  @dry_run
end

#enable_runsObject (readonly)

Returns the value of attribute enable_runs.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def enable_runs
  @enable_runs
end

#excluded_tagsObject (readonly)

Returns the value of attribute excluded_tags.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def excluded_tags
  @excluded_tags
end

#output_fileObject (readonly)

Returns the value of attribute output_file.



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

def output_file
  @output_file
end

#repeat_factorObject (readonly)

Returns the value of attribute repeat_factor.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def repeat_factor
  @repeat_factor
end

#rerun_patternsObject (readonly)

Returns the value of attribute rerun_patterns.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def rerun_patterns
  @rerun_patterns
end

#rerun_usageObject (readonly)

Returns the value of attribute rerun_usage.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def rerun_usage
  @rerun_usage
end

#split_indexObject (readonly)

Returns the value of attribute split_index.



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

def split_index
  @split_index
end

#split_nodesObject (readonly)

Returns the value of attribute split_nodes.



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

def split_nodes
  @split_nodes
end

#test_optionsObject (readonly)

Returns the value of attribute test_options.



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

def test_options
  @test_options
end

#use_parentObject (readonly)

Returns the value of attribute use_parent.



10
11
12
# File 'lib/flakey_spec_catcher/cli_override.rb', line 10

def use_parent
  @use_parent
end

#verboseObject (readonly)

Returns the value of attribute verbose.



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

def verbose
  @verbose
end