def test(): """Run unit/regression test suite""" if not path.exists('tmp'): os.makedirs('tmp') local('{0} -x -v test/test.py --junitxml=tmp/testreport.xml'.format( venv.get_script('py.test') ), capture=False)
def test(): """Run unit/regression test suite""" if not path.exists('tmp'): os.makedirs('tmp') local('{0} -x -v test/test.py --junitxml=tmp/testreport.xml'.format( venv.get_script('py.test')), capture=False)
def test(k=None): """Run tests""" venv.install('pytest') py_test = venv.get_script('py.test') test_script = P.join('applib', 'test', 'all.py') if not P.exists('tmp'): os.mkdir('tmp') if k is not None: args = " -k " + k else: args = "" local('{0} -x -v {1} {2} --junitxml=tmp/testreport.xml'.format( py_test, test_script, args), capture=False)
def test(k=None): """Run tests""" venv.install('pytest') py_test = venv.get_script('py.test') test_script = P.join('applib', 'test', 'all.py') if not P.exists('tmp'): os.mkdir('tmp') if k is not None: args = " -k " + k else: args = "" local( '{0} -x -v {1} {2} --junitxml=tmp/testreport.xml'.format(py_test, test_script, args), capture=False)