8000 Use pytest-cov for running test_auth (#691) · jiangsanyin/PyMySQL@c3fee50 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3fee50

Browse files
authored
Use pytest-cov for running test_auth (PyMySQL#691)
1 parent 58276d1 commit c3fee50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ matrix:
4242
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version
4343
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
4444
install:
45-
- pip install -U coveralls unittest2 coverage cryptography pytest
45+
- pip install -U coveralls unittest2 coverage cryptography pytest pytest-cov
4646

4747
before_script:
4848
- ./.travis/initializedb.sh
@@ -53,7 +53,7 @@ before_script:
5353
script:
5454
- coverage run ./runtests.py
5555
- if [ "${TEST_AUTH}" = "yes" ];
56-
then pytest -v tests;
56+
then pytest -v --cov-config .coveragerc tests;
5757
fi
5858
- if [ ! -z "${DB}" ];
5959
then docker logs mysqld;

0 commit comments

Comments
 (0)
0