More coverage improvements.
This commit is contained in:
parent
66fba512a7
commit
61570c700b
3 changed files with 23 additions and 10 deletions
|
@ -3,8 +3,12 @@
|
|||
# This is the open-adventure dungeon text coverage report generator. It
|
||||
# consumes a YAML description of the dungeon and determines whether the
|
||||
# various strings contained are present within the test check files.
|
||||
#
|
||||
# The default HTML output is appropriate for use with Gitlab CI.
|
||||
# You can override it with a command-line argument.
|
||||
|
||||
import os
|
||||
import sys
|
||||
import yaml
|
||||
import re
|
||||
|
||||
|
@ -306,6 +310,9 @@ if __name__ == "__main__":
|
|||
print(" actions............: {}% covered ({} of {})".format(actions_percent, actions_covered, actions_total))
|
||||
print(" specials...........: {}% covered ({} of {})".format(special_percent, special_covered, special_total))
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
html_output_path = sys.argv[1]
|
||||
|
||||
# render HTML report
|
||||
with open(html_output_path, "w") as f:
|
||||
f.write(html_template.format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue