Method: TestStatus#to_h

Defined in:
lib/test_case/test_status.rb

#to_hObject



33
34
35
36
37
38
# File 'lib/test_case/test_status.rb', line 33

def to_h
  {
    status: @status.to_s,
    reason: @reason
  }.merge(@trace.nil? ? {} : @trace.to_h)
end