Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions bin/ocunit2junit
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ class ReportParser
test_case = $1
@last_description = nil

when /Test Case '-\[\S+\s+(\S+)\]' measured \[Time, seconds\] average: (.*),/
test_case = get_test_case_name($1, @last_description)
test_case_duration = $2.to_f
handle_test_passed(test_case,test_case_duration)

when /Test Case '-\[\S+\s+(\S+)\]' passed \((.*) seconds\)/
test_case = get_test_case_name($1, @last_description)
test_case_duration = $2.to_f
Expand Down Expand Up @@ -169,8 +174,10 @@ class ReportParser
end

def handle_test_passed(test_case,test_case_duration)
@total_passed_test_cases += 1
@tests_results[test_case] = test_case_duration
if !@tests_results.has_key?(test_case)
@total_passed_test_cases += 1
@tests_results[test_case] = test_case_duration
end
end

def handle_test_error(test_suite,test_case,error_message,error_location)
Expand Down