From: Aaron Traas Date: Sun, 9 Jul 2017 19:31:11 +0000 (-0400) Subject: Sort coverage report to make more readable X-Git-Tag: 2017-07-10~3 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=f43bacfa0f1b516df20b4e0bbd9065dd6da4a215;hp=034a13595ba22db16daea6457f153775ab8232bb Sort coverage report to make more readable --- diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index 4d0a236..7d3ea98 100644 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -109,6 +109,7 @@ if __name__ == "__main__": location_html = "" location_total = len(locations) * 2 location_covered = 0 + locations.sort() for locouter in locations: locname = locouter[0] loc = locouter[1] @@ -127,6 +128,7 @@ if __name__ == "__main__": location_html += location_row.format(locname, long_success, short_success) location_percent = round((location_covered / location_total) * 100, 1) + arb_msgs.sort() arb_msg_html = "" arb_total = len(arb_msgs) arb_covered = 0 @@ -142,6 +144,7 @@ if __name__ == "__main__": object_html = "" objects_total = 0 objects_covered = 0 + objects.sort() for (obj_name, obj) in objects: if obj["descriptions"]: for j, desc in enumerate(obj["descriptions"]):