Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: How to merge two different coverage reports remotely

by pryrt (Monsignor)
on May 26, 2021 at 15:10 UTC ( #11133075=note: print w/replies, xml ) Need Help??


in reply to Re: How to merge two different coverage reports remotely
in thread How to merge two different coverage reports remotely

Then, you should be able to merge the databases, too. I was able to make it work, but only for a very simple script.

From a high level, how did you go about doing it? Is it just concatenating some or all of the text files in the cover_db directory? Or do you have to do a manual interleave of data within each file? Or worse, a manual interleave-and-add for counts for certain lines of code? Is it just a subset of files that you have to merge?

Sorry, since I've never looked into merging them before, or really even at the raw data -- I always just look at the HTML report at the end -- I wouldn't know where to start for the merge. Given the original question, it wouldn't surprise me if the OP was in the same boat as I am. So hints as to how to get started with the merge would be nice. (I am bookmarking this thread, since I think some of my repos might get better coverage numbers if I am able to eventually merge the linux and windows results; I'm reasonably confident that between the CI systems, I have full coverage, but being able to prove it would feel nice.)

  • Comment on Re^2: How to merge two different coverage reports remotely

Replies are listed 'Best First'.
Re^3: How to merge two different coverage reports remotely
by choroba (Archbishop) on May 26, 2021 at 15:53 UTC
    No, I just copied the cover_db from one remote to a directory and ran
    cover cover_db downloaded/cover_db

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-01-16 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (49 votes). Check out past polls.

    Notices?