def dist(): project_clean() run('python setup.py sdist bdist_wheel')
def integrationtests(): coverage_clean() run('coverage run -m nose --with-spec --spec-color --attr=integration') coverage_report()
def systemtests(): coverage_clean() run('coverage run -m behave') coverage_report()
def coverage_report(): run('coverage combine') run('coverage html') run('coverage report')
def coverage_clean(): rimraf('.coverage') rimraf('.coverage.*') rimraf('htmlcov') run('coverage erase')
def tox_tests(): run('coverage run -m nose --with-spec --spec-color') run('coverage run -m behave')
def test(): lint() coverage_clean() run('tox') coverage_report()
def lint(): run('flake8 findd tests')