eugeniy / pytest-tornado

A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.
Apache License 2.0
121 stars 34 forks source link

Restore coverage reporting from CI #48

Closed Jamim closed 5 years ago

Jamim commented 5 years ago

Hi there,

For some reason, when we use pytest-cov to run pytest with --cov option, it doesn't collect any data for pytest_tornado/plugin.py file. So, we can use coverage directly as a workaround.

vidartf commented 5 years ago

Wouldn't using py.test --strict --cov=pytest_tornado work?

Jamim commented 5 years ago

No, it wouldn't. And I failed to figure out why.

vidartf commented 5 years ago

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!