Skip to content

Commit 1fccb5b

Browse files
committed
Parse test execution time in unity fixture output
1 parent 5204c1b commit 1fccb5b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auto/parse_output.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ def prepare_fixture_line(line)
131131
def test_passed_unity_fixture(array)
132132
class_name = array[0]
133133
test_name = array[1]
134+
test_time = get_test_time(array[array.length - 1])
134135
test_suite_verify(class_name)
135-
printf "%-40s PASS\n", test_name
136+
printf "%-40s PASS %10d ms\n", test_name, test_time
136137

137-
push_xml_output_passed(test_name) if @xml_out
138+
push_xml_output_passed(test_name, test_time) if @xml_out
138139
end
139140

140141
# Test was flagged as having failed so format the output.

0 commit comments

Comments
 (0)