From 4f6a075331b64e46de6686482cb46292406b7b3d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 29 Nov 2016 16:38:12 -0800 Subject: [PATCH] test-backend: Fix missing output for untested templates. Our enforcement logic for untested templates unfortunately did not give a clear error message unless you passed the --verbose option. --- tools/test-backend | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/test-backend b/tools/test-backend index 2e5da61e50..8f7c83fa0f 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -174,10 +174,9 @@ if __name__ == "__main__": templates_not_rendered = test_runner.get_shallow_tested_templates() if templates_not_rendered: missed_count = len(templates_not_rendered) - if options.verbose: - print("*** Shallow tested templates: {}".format(missed_count)) - for template in templates_not_rendered: - print('--- {}'.format(template)) + print("\nError: %s templates have no tests!".format(missed_count)) + for template in templates_not_rendered: + print(' {}'.format(template)) failures = True if options.coverage: