X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2Fcoverage_dungeon.py;h=766a266f6d706439f147c24e64187e6ebf8bab73;hb=4a4c113624239b55b176ee23ed8e23c2337d42e2;hp=4d0a2364efb7b12ef418809b9563f792a0b22ecd;hpb=926a806db950bdb13fd24c8e85f93946c9ad7ee4;p=open-adventure.git diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py old mode 100644 new mode 100755 index 4d0a236..766a266 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # This is the open-adventure dungeon text coverage report generator. It # consumes a YAML description of the dungeon and determines whether the @@ -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"]):