-
Hello, I understand I can get a reference to the plugin with cov_plugin = config.pluginmanager.get_plugin("pytest_cov") but that just gives access to the module, not the cov_report from the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Looking at https://github.com/pytest-dev/pytest-cov/blob/9463242e3a7bc18a56b8f18c01b4dfb50087e5ed/src/pytest_cov/plugin.py#L193, seems you can get it by using Also consider asking directly in the pytest-cov repository. |
Beta Was this translation helpful? Give feedback.
Could've sweared, I tried the
"_cov"
alone part...But ye that works.
getplugin("_cov").cov_report.getvalue()
gives the string output.Thanks :)