Class: RspecSprint::Collector::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec_sprint/collector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_statusObject

Returns the value of attribute exit_status

Returns:

  • (Object)

    the current value of exit_status



18
19
20
# File 'lib/rspec_sprint/collector.rb', line 18

def exit_status
  @exit_status
end

#factory_prof_pathObject

Returns the value of attribute factory_prof_path

Returns:

  • (Object)

    the current value of factory_prof_path



18
19
20
# File 'lib/rspec_sprint/collector.rb', line 18

def factory_prof_path
  @factory_prof_path
end

#rspec_json_pathObject

Returns the value of attribute rspec_json_path

Returns:

  • (Object)

    the current value of rspec_json_path



18
19
20
# File 'lib/rspec_sprint/collector.rb', line 18

def rspec_json_path
  @rspec_json_path
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



18
19
20
# File 'lib/rspec_sprint/collector.rb', line 18

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



18
19
20
# File 'lib/rspec_sprint/collector.rb', line 18

def stdout
  @stdout
end

Instance Method Details

#factory_prof?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/rspec_sprint/collector.rb', line 26

def factory_prof?
  !factory_prof_path.nil? && File.exist?(factory_prof_path)
end

#rspec_json?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rspec_sprint/collector.rb', line 22

def rspec_json?
  !rspec_json_path.nil? && File.exist?(rspec_json_path) && !File.zero?(rspec_json_path)
end

#suite_red?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rspec_sprint/collector.rb', line 30

def suite_red?
  !exit_status.nil? && exit_status != 0
end