Home GnuPG

Preserve more information when merging coverage
de58fc809e37Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Preserve more information when merging coverage

Summary:
Ref T8096. Each test reports coverage information, which we sometimes merge into a combined coverage report.

Usually, each test will report results for every line in the file, so if the file is 30 lines long, coverage is usually 30 characters long.

However, for whatever reason, tests might report results for only the first part of the file. This is allowed and we handle it properly.

Right now, if one test reports 10 lines of results and another reports 30 lines of results, we only use the first 10 lines of results. Instead, extend the merged coverage to include the extra 20 lines of results.

(This is an uncommon case which I only hit because I was manually banging on my keyboard to generate test data, but there's no reason not to handle it better.)

Test Plan: Used web UI, added + executed unit tests.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T8096

Differential Revision: https://secure.phabricator.com/D13854

Details

Provenance
epriestley <git@epriestley.com>Authored on Aug 11 2015, 12:35 AM
Parents
rARCe4caf1a7d94f: Automatically use the configuration driven unit test engine
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rARCde58fc809e37: Preserve more information when merging coverage (authored by epriestley <git@epriestley.com>).Aug 11 2015, 12:35 AM