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

Issue 1913593002: Enable emma code coverage for JUnit testcases. (Closed)

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

Description

Enable emma code coverage for JUnit testcases. After setting emma_coverage as true, and then run JUnit testcases, code coverage information will be stored in coverage.ec. In order to read coverage.ec file, you will need to find the corresponding <name>.em file in out-gn/Debug and then merge the .em and .ec file into a txt or html. BUG=604900 Committed: https://crrev.com/071f7c486154a89e15c8b796a8bd0f64573a7096 Cr-Commit-Position: refs/heads/master@{#389902}

Patch Set 1 #

Total comments: 8

Patch Set 2 : fixes #

Total comments: 4

Patch Set 3 : changed it into boolean #

Patch Set 4 : change description #

Total comments: 2

Patch Set 5 : changed from root_out_dir to root_build_dir #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M build/android/gyp/create_java_binary_script.py View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
BigBossZhiling
Please take a look John.
4 years, 8 months ago (2016-04-22 21:35:01 UTC) #3
BigBossZhiling
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode40 build/android/gyp/create_java_binary_script.py:40: java_cmd.append("-noverify") Otherwise emma will run into a werid error. ...
4 years, 8 months ago (2016-04-22 21:37:02 UTC) #4
BigBossZhiling
4 years, 8 months ago (2016-04-22 21:37:04 UTC) #5
jbudorick
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 build/android/gyp/create_java_binary_script.py:68: ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar'] On 2016/04/22 21:37:02, BigBossZhiling wrote: > After talking ...
4 years, 8 months ago (2016-04-22 21:38:24 UTC) #6
mikecase (-- gone --)
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 build/android/gyp/create_java_binary_script.py:68: ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar'] On 2016/04/22 at 21:37:02, BigBossZhiling wrote: > After ...
4 years, 8 months ago (2016-04-22 23:51:46 UTC) #8
BigBossZhiling
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 build/android/gyp/create_java_binary_script.py:68: ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar'] Yes, we need this classpath when we run ...
4 years, 8 months ago (2016-04-23 01:00:56 UTC) #9
mikecase (-- gone --)
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode76 build/android/gyp/create_java_binary_script.py:76: classpath = [os.path.relpath(p, run_dir) for p in classpath] I ...
4 years, 8 months ago (2016-04-25 18:36:40 UTC) #10
BigBossZhiling
On 2016/04/25 18:36:40, mikecase wrote: > https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py > File build/android/gyp/create_java_binary_script.py (right): > > https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode76 > ...
4 years, 8 months ago (2016-04-25 22:12:59 UTC) #11
BigBossZhiling
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 build/android/gyp/create_java_binary_script.py:68: ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar'] On 2016/04/22 23:51:45, mikecase wrote: > On 2016/04/22 ...
4 years, 8 months ago (2016-04-26 00:01:46 UTC) #13
jbudorick
On 2016/04/26 00:01:46, BigBossZhiling wrote: > https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py > File build/android/gyp/create_java_binary_script.py (right): > > https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 > ...
4 years, 8 months ago (2016-04-26 00:02:39 UTC) #14
agrieve
https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/1/build/android/gyp/create_java_binary_script.py#newcode68 build/android/gyp/create_java_binary_script.py:68: ['../../third_party/android_tools_internal/sdk/tools/lib/emma.jar'] On 2016/04/26 00:01:46, BigBossZhiling wrote: > On 2016/04/22 ...
4 years, 8 months ago (2016-04-26 00:08:01 UTC) #15
BigBossZhiling
hello guys, please take a look!
4 years, 8 months ago (2016-04-26 02:08:54 UTC) #16
agrieve
https://codereview.chromium.org/1913593002/diff/20001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1913593002/diff/20001/build/android/gyp/create_java_binary_script.py#newcode62 build/android/gyp/create_java_binary_script.py:62: parser.add_option('--noverify', help='JVM flag: noverify.') nit: Change this to a ...
4 years, 8 months ago (2016-04-26 14:51:10 UTC) #17
BigBossZhiling
changed it into a boolean. didn't know such a thing exists. https://codereview.chromium.org/1913593002/diff/20001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): ...
4 years, 8 months ago (2016-04-26 17:35:58 UTC) #18
agrieve
On 2016/04/26 17:35:58, BigBossZhiling wrote: > changed it into a boolean. didn't know such a ...
4 years, 8 months ago (2016-04-26 17:40:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913593002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913593002/60001
4 years, 8 months ago (2016-04-26 17:44:24 UTC) #23
mikecase (-- gone --)
https://codereview.chromium.org/1913593002/diff/60001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1913593002/diff/60001/build/config/android/internal_rules.gni#newcode248 build/config/android/internal_rules.gni:248: root_out_dir), Not 100% sure, but I think you want ...
4 years, 8 months ago (2016-04-26 17:59:36 UTC) #24
agrieve
https://codereview.chromium.org/1913593002/diff/60001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1913593002/diff/60001/build/config/android/internal_rules.gni#newcode248 build/config/android/internal_rules.gni:248: root_out_dir), On 2016/04/26 17:59:36, mikecase wrote: > Not 100% ...
4 years, 8 months ago (2016-04-26 18:10:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913593002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913593002/80001
4 years, 8 months ago (2016-04-26 18:15:31 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/60537)
4 years, 8 months ago (2016-04-26 20:11:51 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1913593002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1913593002/80001
4 years, 8 months ago (2016-04-26 20:40:25 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-26 21:46:39 UTC) #34
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 21:48:35 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/071f7c486154a89e15c8b796a8bd0f64573a7096
Cr-Commit-Position: refs/heads/master@{#389902}

Powered by Google App Engine
This is Rietveld 408576698