mirror of https://github.com/zulip/zulip.git
test-backend: Only check for unrendered templates if tests passed.
This commit is contained in:
parent
cc13104780
commit
aadf621466
|
@ -172,7 +172,8 @@ if __name__ == "__main__":
|
||||||
full_suite=full_suite)
|
full_suite=full_suite)
|
||||||
|
|
||||||
templates_not_rendered = test_runner.get_shallow_tested_templates()
|
templates_not_rendered = test_runner.get_shallow_tested_templates()
|
||||||
if templates_not_rendered and full_suite:
|
# We only check the templates if all the tests ran and passed
|
||||||
|
if not failures and full_suite and templates_not_rendered:
|
||||||
missed_count = len(templates_not_rendered)
|
missed_count = len(templates_not_rendered)
|
||||||
print("\nError: %s templates have no tests!" % (missed_count,))
|
print("\nError: %s templates have no tests!" % (missed_count,))
|
||||||
for template in templates_not_rendered:
|
for template in templates_not_rendered:
|
||||||
|
|
Loading…
Reference in New Issue