Parse test execution time in unity fixture output

This commit is contained in:
Florence Yernaux
2023-04-08 12:22:12 +02:00
committed by Florence Yernaux
parent c40b80a917
commit eae109afc3
+3 -2
View File
@@ -131,10 +131,11 @@ class ParseOutput
def test_passed_unity_fixture(array)
class_name = array[0]
test_name = array[1]
test_time = get_test_time(array[array.length - 1])
test_suite_verify(class_name)
printf "%-40s PASS\n", test_name
printf "%-40s PASS %10d ms\n", test_name, test_time
push_xml_output_passed(test_name) if @xml_out
push_xml_output_passed(test_name, test_time) if @xml_out
end
# Test was flagged as having failed so format the output.