diff --git a/coordo-py/test.py b/coordo-py/test.py index e1dda1b..55c5b77 100644 --- a/coordo-py/test.py +++ b/coordo-py/test.py @@ -8,7 +8,7 @@ def run_doctests(code): finder = DocTestFinder(recurse=False) - runner = DocTestRunner(optionflags=NORMALIZE_WHITESPACE) + runner = DocTestRunner(optionflags=NORMALIZE_WHITESPACE, verbose=True) for test in finder.find(code, "coordo-py", globs=globals()): result = runner.run(test) if result.failed: @@ -38,3 +38,8 @@ def run_doctests(code): doctest_lines.append(line) else: exec_lines.append(line) + +if doctest_lines: + run_doctests( + "\n".join(doctest_lines), + )