Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
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)