Skip to content

Commit

Permalink
Parse test execution time in unity fixture output
Browse files Browse the repository at this point in the history
  • Loading branch information
fy666 committed Apr 8, 2023
1 parent c40b80a commit eae109a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auto/parse_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ def prepare_fixture_line(line)
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.
Expand Down

0 comments on commit eae109a

Please sign in to comment.