coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

coverage report raise NoDataError("No data to report.")

Open lvyansheshou opened this issue 3 years ago • 1 comments

Hi, The environment is Python 3.8.5 coverage py, version 6.4.4 x86_ 64 using the coverage API, report no data to report However, using the command line, print the report normally image image

Can you help me?

lvyansheshou avatar Aug 17 '22 12:08 lvyansheshou

You say you are using the API, which means you have written some code to use the API. You should share that code, and the command line you used that worked. Ideally, you'd have a link to the complete project so that we can find other details we need. Lastly, it's easier to help if you copy text and paste it as text rather than pasting screenshots.

nedbat avatar Aug 17 '22 21:08 nedbat