app/models/test_case.rb in sw2at-ui-0.0.1 vs app/models/test_case.rb in sw2at-ui-0.0.2

- old
+ new

@@ -7,17 +7,25 @@ data = { description: rspec_example.description, full_description: rspec_example.full_description, file_path: rspec_example.file_path, location: rspec_example.location, - exception: rspec_example.exception, status: rspec_example.metadata[:execution_result].status, started_at: rspec_example.metadata[:execution_result].started_at, run_time: rspec_example.metadata[:execution_result].run_time }.merge!(revision_opts).merge!(extras) + + if rspec_example.exception + data[:exception] = { + message: rspec_example.exception.message, + backtrace: rspec_example.exception.backtrace, + } + end + if rspec_example.respond_to?(:swat_extras) data.merge!(swat_extras: rspec_example.swat_extras) end + create(data) end end