Skip to content

Commit b12f1e0

Browse files
committed
Sort PyUnit test results
Since PyUnit already sorts the results based on the test method, this sorting is useful in cases where multiple test classes are present in a single file and when we want to have a consistent sorting across all test classes.
1 parent 907249a commit b12f1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/py_unit_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ def parse_output(output)
4545
count += total_failed
4646
end
4747

48-
{count:, failed: total_failed, error_messages: assertion_error_matches.flatten.compact_blank}.compact_blank
48+
{count:, failed: total_failed, error_messages: assertion_error_matches.flatten.compact_blank.sort}.compact_blank
4949
end
5050
end

0 commit comments

Comments
 (0)