X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=tests%2Fcoverage_dungeon.py;h=6484fa79b008f0ff15d95bd6e530c0cc5275e3a3;hp=57180b5b4459d8d82eb960da27487ae4bdc02a9d;hb=319c5830c835b86cdcaa56e2ba9bdb50549e9186;hpb=e9cd50ec3805875cb6767da998ff3b55dc046a88 diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index 57180b5..6484fa7 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -14,7 +14,7 @@ import re TEST_DIR = "." YAML_PATH = "../adventure.yaml" -HTML_TEMPLATE_PATH = "coverage_dungeon.html.tpl" +HTML_TEMPLATE_PATH = "../templates/coverage_dungeon.html.tpl" DEFAULT_HTML_OUTPUT_PATH = "../coverage/adventure.yaml.html" STDOUT_REPORT_CATEGORY = " {name:.<19}: {percent:5.1f}% covered ({covered} of {total})\n" @@ -152,8 +152,8 @@ def arb_coverage(arb_msgs, text, report): report["messages"][name]["covered"] = True report["covered"] += 1 -def specials_actions_coverage(items, text, report): - # works for actions or specials +def actions_coverage(items, text, report): + # works for actions for name, item in items: if name not in report["messages"]: report["messages"][name] = {"covered" : False} @@ -182,8 +182,7 @@ def coverage_report(db, check_file_contents): loc_coverage(db["locations"], chk, report["locations"]) obit_coverage(db["obituaries"], chk, report["obituaries"]) obj_coverage(db["objects"], chk, report["objects"]) - specials_actions_coverage(db["actions"], chk, report["actions"]) - specials_actions_coverage(db["specials"], chk, report["specials"]) + actions_coverage(db["actions"], chk, report["actions"]) threshold_coverage(db["classes"], chk, report["classes"]) threshold_coverage(db["turn_thresholds"], chk, report["turn_thresholds"])