10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/assemblyline_formatter.rb', line 10
def stop
super
@output_hash[:examples] = examples.map do |example|
{
:description => example.description,
:full_description => example.full_description,
:status => example.execution_result[:status],
:file_path => example.metadata[:file_path],
:line_number => example.metadata[:line_number],
:run_time => example.execution_result[:run_time],
}.tap do |hash|
if e=example.exception
hash[:exception] = {
:class => e.class.name,
:message => e.message,
:backtrace => e.backtrace,
}
end
end
end
end
|