Skip to content

Commit fa0f2cb

Browse files
authored
Merge pull request #23 from touilleMan/fix-coverage
Fix coverage not covering module init
2 parents c79bb4c + f470581 commit fa0f2cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ test_script:
2424
- "cd empty"
2525
# Make sure it's being imported from where we expect
2626
- "python -c \"import os, pytest_trio; print(os.path.dirname(pytest_trio.__file__))\""
27-
- "python -u -m pytest -W error -ra -v -s --pyargs pytest_trio --cov=pytest_trio --cov-config=../.coveragerc"
27+
- "python -u -m coverage run --rcfile=../.coveragerc -m pytest -W error -ra -v -s --pyargs pytest_trio"
2828
- "codecov"

ci/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
mkdir empty
9393
cd empty
9494

95-
pytest -W error -ra -v --pyargs pytest_trio --cov=pytest_trio --cov-config=../.coveragerc --verbose
95+
coverage run --rcfile=../.coveragerc -m pytest -W error -ra -v --pyargs pytest_trio --verbose
9696

9797
bash <(curl -s https://codecov.io/bash)
9898
fi

0 commit comments

Comments
 (0)