Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to merge two different coverage reports remotely

by choroba (Archbishop)
on May 25, 2021 at 22:24 UTC ( #11133030=note: print w/replies, xml ) Need Help??


in reply to How to merge two different coverage reports remotely

Isn't it possible to create a directory /a/b with a symlink to /x/y/repo so that the paths are actually the same? Then, you should be able to merge the databases, too.

I was able to make it work, but only for a very simple script. Make sure to backup or commit the coverage reports so you don't have to rerun the scripts every time you discover a problem.

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

Replies are listed 'Best First'.
Re^2: How to merge two different coverage reports remotely
by pryrt (Monsignor) on May 26, 2021 at 15:10 UTC
    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.)

      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://11133030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2022-01-16 09:53 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?