diff --git a/tox.ini b/tox.ini index 702b3744..64e365bd 100644 --- a/tox.ini +++ b/tox.ini @@ -3,10 +3,17 @@ envlist = py35, py36, py37, lint [testenv] commands = - py.test sqlalchemy_utils tests + py.test sqlalchemy_utils --cov=sqlalchemy_utils --cov-report=xml tests deps = .[test_all] -passenv = SQLALCHEMY_UTILS_TEST_DB SQLALCHEMY_UTILS_TEST_POSTGRESQL_USER SQLALCHEMY_UTILS_TEST_MYSQL_USER + pytest-cov +passenv = + SQLALCHEMY_UTILS_TEST_DB + SQLALCHEMY_UTILS_TEST_POSTGRESQL_USER + SQLALCHEMY_UTILS_TEST_MYSQL_USER + CI + TRAVIS + TRAVIS_* [testenv:py35] recreate = True