Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 1216033009: Updated script to capture useful coverage stats. (Closed)

Created:
5 years, 5 months ago by estevenson1
Modified:
5 years, 4 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added coverage stats and report generation. Sample Usage: build/android/coverage.py -v --out <output file path> --emma-dir <EMMA file directory> --lines-for-coverage-file <path to file containing lines for coverage> This CL adds the ability to generate code coverage reports for Java code. To use this script, a JSON file should exist that maps file paths to lists of integers, representing the lines that have changed for each file (i.e. incremental changes). The generated report contains overall coverage, coverage for the lines specified in the input file, and line by line coverage for each file included in the input file. BUG=501536 Committed: https://crrev.com/67aa871b52c94f30b52ef19fa71388a54fc3410f Cr-Commit-Position: refs/heads/master@{#341437}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Small refactor. #

Total comments: 25

Patch Set 3 : Updates based on review. #

Total comments: 4

Patch Set 4 : Addressed jbudorick's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -7 lines) Patch
M build/android/emma_coverage_stats.py View 1 2 3 5 chunks +294 lines, -6 lines 0 comments Download
M build/android/emma_coverage_stats_test.py View 1 2 3 5 chunks +263 lines, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
estevenson1
5 years, 5 months ago (2015-07-02 01:15:08 UTC) #2
estevenson1
5 years, 4 months ago (2015-07-27 17:04:39 UTC) #3
estevenson1
https://codereview.chromium.org/1216033009/diff/20001/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1216033009/diff/20001/build/android/coverage.py#newcode449 build/android/coverage.py:449: ValueError: An improperly formatted |line_coverage_file| was supplied. Need to ...
5 years, 4 months ago (2015-07-27 17:10:11 UTC) #4
mikecase (-- gone --)
https://codereview.chromium.org/1216033009/diff/1/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1216033009/diff/1/build/android/coverage.py#newcode258 build/android/coverage.py:258: """Encapsulates coverage operations related to EMMA files. Probably change ...
5 years, 4 months ago (2015-07-27 18:45:53 UTC) #5
estevenson1
https://codereview.chromium.org/1216033009/diff/1/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1216033009/diff/1/build/android/coverage.py#newcode258 build/android/coverage.py:258: """Encapsulates coverage operations related to EMMA files. On 2015/07/27 ...
5 years, 4 months ago (2015-07-30 02:34:10 UTC) #7
jbudorick
https://codereview.chromium.org/1216033009/diff/40001/build/android/emma_coverage_stats.py File build/android/emma_coverage_stats.py (right): https://codereview.chromium.org/1216033009/diff/40001/build/android/emma_coverage_stats.py#newcode383 build/android/emma_coverage_stats.py:383: logging.warning('Skipping %s because it doesn\'t have a package ' ...
5 years, 4 months ago (2015-07-31 20:21:15 UTC) #8
estevenson1
https://codereview.chromium.org/1216033009/diff/40001/build/android/emma_coverage_stats.py File build/android/emma_coverage_stats.py (right): https://codereview.chromium.org/1216033009/diff/40001/build/android/emma_coverage_stats.py#newcode383 build/android/emma_coverage_stats.py:383: logging.warning('Skipping %s because it doesn\'t have a package ' ...
5 years, 4 months ago (2015-07-31 21:52:16 UTC) #9
jbudorick
lgtm
5 years, 4 months ago (2015-07-31 21:54:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216033009/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1216033009/60001
5 years, 4 months ago (2015-07-31 22:13:48 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-07-31 23:34:46 UTC) #13
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 23:38:50 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/67aa871b52c94f30b52ef19fa71388a54fc3410f
Cr-Commit-Position: refs/heads/master@{#341437}

Powered by Google App Engine
This is Rietveld 408576698