[TIP] coverage and combining reports
ned at nedbatchelder.com
Sun Feb 5 04:39:17 PST 2017
Send me (off-list) a copy of your .coverage data files before and after
the combine step, and also the .coveragerc file. If the project is
public, a link to the repo will be very helpful also.
Frankly, the mapping of files across machines still seems confusing,
even to me! :)
On 2/3/17 11:06 AM, sashk wrote:
> I've run into issue with with coverage during combining reports step.
> My code base supports multiple operating system, so in order to get
> full coverage results, I need to take multiple .coverage files and
> combine them into single one, and then show the report.
> I use tox to run tests, so coverage finds source in the
> $(pwd)/.tox/pyXX/lib/python-X.X/site-packages, but when I run coverage
> combine and report the sources are located in the $(pwd}/src. I
> included both paths into my .coveragerc (see below).
> When I run coverage report --show-missing, I get bunch of errors, that
> it can't find sources like one below:
> NoSource: No source for code:
> Aborting report output, consider using -i.
> I use gitlab-runner to run tests, and paths are different between
> runners. In runner above, $(pwd) part is
> /home/gitlab_ci_multi_runner/builds/XXXXXXXX/0/b/src, but in runner
> where I combine reports $(pwd) part is/root/src. I tried -i option, as
> suggested by error message, but then I get blank report.
> How to make this work? What am I missing?
> my .coveragerc
> source =
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python