Class: RSpec::Distrib::ExecutionResults Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/distrib/example_group.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Objects that mimic an RSpec::Core::Example::ExecutionResult on the Reporters.

This is necessary because the RSpec::Core::Example is quite large and not Marshalable.

Defined Under Namespace

Classes: Exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_results) ⇒ ExecutionResults

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ExecutionResults.



142
143
144
145
146
147
148
149
150
# File 'lib/rspec/distrib/example_group.rb', line 142

def initialize(execution_results)
  @status = execution_results.status
  @pending_exception = Exception.new(execution_results.pending_exception) if execution_results.pending_exception
  @pending_message = execution_results.pending_message
  @exception = Exception.new(execution_results.exception) if execution_results.exception
  @example_skipped = execution_results.example_skipped?
  @pending_fixed = execution_results.pending_fixed?
  @run_time = execution_results.run_time
end

Instance Attribute Details

#example_skippedObject (readonly) Also known as: example_skipped?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def example_skipped
  @example_skipped
end

#exceptionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def exception
  @exception
end

#pending_exceptionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def pending_exception
  @pending_exception
end

#pending_fixedObject (readonly) Also known as: pending_fixed?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def pending_fixed
  @pending_fixed
end

#pending_messageObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def pending_message
  @pending_message
end

#run_timeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def run_time
  @run_time
end

#statusObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



139
140
141
# File 'lib/rspec/distrib/example_group.rb', line 139

def status
  @status
end