def run_all(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down....\n')
# always insert coverage when running tests through setup.py
if argv is None:
argv = [
'nosetests', '--with-xunit',
'--logging-format=%(levelname)s %(name)22s %(funcName)22s:%(lineno)-4d %(message)s',
'--with-xcoverage', '--cover-package=kibtool', '--cover-erase',
'--verbose',
]
nose.run_exit(
argv=argv,
defaultTest=abspath(dirname(__file__))
)
评论列表
文章目录