• Ben Joyce's avatar
    Combine two jacoco reports. · d5f6f618
    Ben Joyce authored
    Combines the report generated from the host (junit) code coverage
    with the report generated from the test a ran on device. It goes to each
    method and updates the counters from whichever coverage is higher.
    
    It then updates the lines covered in the source file and finally,
    updates the counters.
    
    Please note if an instruction has branch A,B,C, and one report covers
    only branch A and another only covers Branch B and C, it will choose the
    report results that cover branch B and C, showing A as uncovered. This
    is because if one report covered A and B, and another covered B, we
    can't say "3 branches are covered."
    
    Bug: 1107004
    Change-Id: I8dfa9feb80df5c9ed6d468226c25155383962519
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2333065
    Commit-Queue: benjamin joyce <bjoyce@chromium.org>
    Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#796081}
    d5f6f618
generate_jacoco_report_test.py 25.4 KB