Hi Monks!
I'm using Devel::Cover. I run my script on two different hosts (to test different envs). Let's call the first and the second one host X and host Y, respectively for convince.
The code that I test is the same on both sites (it's being copied first to those sites, before running the script).
I want to create one merged HTML report of those results (from both hosts). The way I run Devel::Cover:
perl -MDevel::Cover=-silent,1,-db,${cover_db_path}" ${perl_script}
It creates the coverage db and then I can use the "cover" script to create the HTML report.
As I mentioned, I want to create one merged report of those dbs (from the two hosts). The problem is that the ${perl_script} is located in two different places. In host X I have /a/b/repo/run.py and in host Y I have /x/y/repo/run.py (please note that all of the perl scripts that I'm interested in are located under "repo" directory).
So I can sum up three problems that dependent on each other:
1. I can copy the cover_db from those sites but running the cover script will not work since it will not find those paths locally. It will create the report but it will have N/A for those paths, which of course makes sense, since it needs the source code.
2. I can run the cover script remotely on each site and create the reports but then how do I merge those HTML reports?
3. If it was possible to merge the HTML reports, how can I make them understand that /a/b/repo/* is the same as /x/y/repo/*?
I don't want it to become an X-Y problem so I would ask this - How would you merge two cover dbs that are located on two different hosts?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.