def runtests(*test_args): if not test_args: test_args = ['admin_views'] parent = dirname(abspath(__file__)) example_project = os.path.join(parent, 'example_project') sys.path.insert(0, example_project) runner = CoverageRunner() failures = runner.run_tests(test_args, verbosity=1, interactive=True) sys.exit(failures)
def runtests(): test_runner = TestRunner(verbosity=1, interactive=True) failures = test_runner.run_tests(['tests']) sys.exit(failures)