projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
034a135
)
Sort coverage report to make more readable
author
Aaron Traas
<aaron@traas.org>
Sun, 9 Jul 2017 19:31:11 +0000
(15:31 -0400)
committer
Aaron Traas
<aaron@traas.org>
Sun, 9 Jul 2017 19:31:11 +0000
(15:31 -0400)
tests/coverage_dungeon.py
patch
|
blob
|
history
diff --git
a/tests/coverage_dungeon.py
b/tests/coverage_dungeon.py
index 4d0a2364efb7b12ef418809b9563f792a0b22ecd..7d3ea985905daf80ac5fe33a4e8a2f947d78e8fe 100644
(file)
--- 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
location_html = ""
location_total = len(locations) * 2
location_covered = 0
+ locations.sort()
for locouter in locations:
locname = locouter[0]
loc = locouter[1]
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)
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
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
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"]):
for (obj_name, obj) in objects:
if obj["descriptions"]:
for j, desc in enumerate(obj["descriptions"]):