Closed Jamim closed 5 years ago
Wouldn't using py.test --strict --cov=pytest_tornado
work?
No, it wouldn't. And I failed to figure out why.
Oh I see, it is because the travis install is not a development install, so the files in the directory pointed to by --cov
is not the files that are run. It works if we do a -e .
install, but I think your current workaround is more suited for CI. Thanks!
Hi there,
For some reason, when we use
pytest-cov
to runpytest
with--cov
option, it doesn't collect any data forpytest_tornado/plugin.py
file. So, we can usecoverage
directly as a workaround.