lib/allure-rspec/builder.rb in allure-rspec-0.3.1 vs lib/allure-rspec/builder.rb in allure-rspec-0.3.2
- old
+ new
@@ -45,12 +45,12 @@
stop_step(suite, test, step_title, result[:status])
end
end
MUTEX.synchronize do
puts "Stopping test #{suite}.#{test}"
- self.suites[suite][:tests][test][:stop] = timestamp(result[:started_at])
- self.suites[suite][:tests][test][:start] = timestamp(result[:finished_at])
+ self.suites[suite][:tests][test][:stop] = timestamp(result[:finished_at])
+ self.suites[suite][:tests][test][:start] = timestamp(result[:started_at])
self.suites[suite][:tests][test][:status] = result[:status]
if (result[:status].to_sym != :passed)
self.suites[suite][:tests][test][:failure] = {
:stacktrace => escape((result[:caller] || []).map { |s| s.to_s }.join("\r\n")),
:message => escape(result[:exception].to_s),
@@ -59,10 +59,11 @@
end
end
def escape(text)
- REXML::Text.new(text, false, nil, false)
+ #REXML::Text.new(text, false, nil, false)
+ text
end
def start_step(suite, test, step, severity = :normal)
MUTEX.synchronize do
puts "Starting step #{suite}.#{test}.#{step}"
\ No newline at end of file