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

Issue 1211243016: Added coverage script and tests. (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 script for Java code. This CL contains the first part of a script that will be used to generate code coverage stats for Java code. The coverage tool used, EMMA, only provides line by line coverage information in the form of HTML reports, so this CL handles parsing these files. BUG=501536 Committed: https://crrev.com/cf902beeaf9f13167abe9d5631ae1d3be9303d92 Cr-Commit-Position: refs/heads/master@{#340833}

Patch Set 1 #

Total comments: 29

Patch Set 2 : Fixed nits. #

Total comments: 14

Patch Set 3 : Removed lxml dependency. #

Total comments: 4

Patch Set 4 : Fixed nit. #

Patch Set 5 : Renamed module to avoid any naming conflicts. #

Total comments: 2

Patch Set 6 : Removed references to lxml and added test to presubmit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -0 lines) Patch
M build/android/PRESUBMIT.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A build/android/emma_coverage_stats.py View 1 2 3 4 5 1 chunk +196 lines, -0 lines 0 comments Download
A build/android/emma_coverage_stats_test.py View 1 2 3 4 5 1 chunk +308 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
estevenson1
5 years, 5 months ago (2015-07-02 00:47:55 UTC) #2
mikecase (-- gone --)
Mostly nits. https://codereview.chromium.org/1211243016/diff/1/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/1/build/android/coverage.py#newcode29 build/android/coverage.py:29: point number between [0.0 - 1.0]. s/"[0.0 ...
5 years, 5 months ago (2015-07-07 17:12:33 UTC) #3
estevenson1
https://codereview.chromium.org/1211243016/diff/1/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/1/build/android/coverage.py#newcode29 build/android/coverage.py:29: point number between [0.0 - 1.0]. On 2015/07/07 at ...
5 years, 5 months ago (2015-07-07 23:54:56 UTC) #4
mikecase (-- gone --)
a final few comments, but I think this CL looks good. I'm not an owner ...
5 years, 5 months ago (2015-07-13 16:50:07 UTC) #5
jbudorick
https://codereview.chromium.org/1211243016/diff/20001/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/20001/build/android/coverage.py#newcode9 build/android/coverage.py:9: from lxml import html I'm somewhat concerned about this. ...
5 years, 5 months ago (2015-07-14 16:26:24 UTC) #7
estevenson1
https://codereview.chromium.org/1211243016/diff/20001/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/20001/build/android/coverage.py#newcode9 build/android/coverage.py:9: from lxml import html On 2015/07/14 at 16:26:24, jbudorick ...
5 years, 5 months ago (2015-07-21 00:01:15 UTC) #8
jbudorick
It looks like something's ... missing ... here. https://codereview.chromium.org/1211243016/diff/40001/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/40001/build/android/coverage.py#newcode1 build/android/coverage.py:1: #!/usr/bin/python ...
5 years, 4 months ago (2015-07-24 17:02:59 UTC) #9
estevenson1
https://codereview.chromium.org/1211243016/diff/40001/build/android/coverage.py File build/android/coverage.py (right): https://codereview.chromium.org/1211243016/diff/40001/build/android/coverage.py#newcode1 build/android/coverage.py:1: #!/usr/bin/python On 2015/07/24 at 17:02:59, jbudorick wrote: > This ...
5 years, 4 months ago (2015-07-24 17:14:45 UTC) #10
jbudorick
lgtm
5 years, 4 months ago (2015-07-24 17:21:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243016/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1211243016/60001
5 years, 4 months ago (2015-07-24 17:25:47 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/82367)
5 years, 4 months ago (2015-07-24 18:19:11 UTC) #16
nednguyen
+Dave: This patch is blocked because telemetry_dependencies_unittest complaining about coverage.py being extra dependency . It ...
5 years, 4 months ago (2015-07-24 20:56:19 UTC) #18
dtu
On 2015/07/24 20:56:19, nednguyen wrote: > +Dave: This patch is blocked because telemetry_dependencies_unittest complaining > ...
5 years, 4 months ago (2015-07-28 00:20:56 UTC) #19
nednguyen
On 2015/07/28 00:20:56, dtu wrote: > On 2015/07/24 20:56:19, nednguyen wrote: > > +Dave: This ...
5 years, 4 months ago (2015-07-28 01:08:13 UTC) #20
chromium-reviews
Thanks for looking into this, and thanks for the heads up about potential naming conflicts! ...
5 years, 4 months ago (2015-07-28 01:08:38 UTC) #21
chromium-reviews
Yeah I've renamed it to emma_coverage_stats.py, should be all good now. Thanks again. On Mon, ...
5 years, 4 months ago (2015-07-28 01:10:47 UTC) #22
jbudorick
Forgot to mention previously -- add your test to the presubmit: https://code.google.com/p/chromium/codesearch#chromium/src/build/android/PRESUBMIT.py&l=41 https://codereview.chromium.org/1211243016/diff/80001/build/android/emma_coverage_stats.py File build/android/emma_coverage_stats.py ...
5 years, 4 months ago (2015-07-28 02:45:48 UTC) #23
estevenson1
https://codereview.chromium.org/1211243016/diff/80001/build/android/emma_coverage_stats.py File build/android/emma_coverage_stats.py (right): https://codereview.chromium.org/1211243016/diff/80001/build/android/emma_coverage_stats.py#newcode191 build/android/emma_coverage_stats.py:191: A list of lxml.html.HtmlElements matching the given XPath selector. ...
5 years, 4 months ago (2015-07-28 19:25:51 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243016/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1211243016/100001
5 years, 4 months ago (2015-07-29 00:09:29 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-07-29 01:35:33 UTC) #28
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 01:36:26 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cf902beeaf9f13167abe9d5631ae1d3be9303d92
Cr-Commit-Position: refs/heads/master@{#340833}

Powered by Google App Engine
This is Rietveld 408576698