[TIP] Can pytest identify python code that has no test

Bruno Oliveira nicoddemus at gmail.com
Fri Jan 4 08:42:46 PST 2019

Hi Joe,

On Fri, Dec 21, 2018 at 5:06 PM DZIOBEK, JOE <jd5948 at att.com> wrote:

> Is there a way to have this file included in the report?
You are not seeing coverage information for scriptB.py not because it does
not have an associated test file, but because it was never imported during
the run (I'm assuming).

One way to have it to appear on the report is to import scriptB on your
__init__.py file, this way its coverage will be tracked.

Hope this helps,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20190104/498ef44d/attachment.html>

More information about the testing-in-python mailing list