import thread_utils
logger = logging.getLogger(__name__)
-args = config.add_commandline_args(f'({__file__})', 'Args related to __file__')
+args = config.add_commandline_args(f'({__file__})', f'Args related to {__file__}')
args.add_argument('--unittests', '-u', action='store_true', help='Run unittests.')
args.add_argument('--doctests', '-d', action='store_true', help='Run doctests.')
args.add_argument('--integration', '-i', action='store_true', help='Run integration tests.')
"""Give a final code coverage report."""
text_utils.header('Code Coverage')
exec_utils.cmd('coverage combine .coverage*')
- out = exec_utils.cmd('coverage report --omit=config-3.8.py,*_test.py,*_itest.py --sort=-cover')
+ out = exec_utils.cmd('coverage report --omit=config-3.*.py,*_test.py,*_itest.py --sort=-cover')
print(out)
print(
"""To recall this report w/o re-running the tests:
- $ coverage report --omit=config-3.8.py,*_test.py,*_itest.py --sort=-cover
+ $ coverage report --omit=config-3.*.py,*_test.py,*_itest.py --sort=-cover
...from the 'tests' directory. Note that subsequent calls to
run_tests.py with --coverage will klobber previous results. See: