0
Commit Graph

10 Commits

Author SHA1 Message Date
Finnur Thorarinsson
ab966867f2 Fix documentation for Android code coverage generation.
The instructions seem to assume running the script from /src and
the intent is to create two directories

/tmp/coverage
/tmp/coverage_report

but the lack of a slash prefix results in the creation of...

/tmp/coverage
/src/tmp/coverage_report

Bug: None
Change-Id: Ib10050a577fc8e9494a903386d5886ccbef8aa1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2124256
Commit-Queue: John Budorick <jbudorick@chromium.org>
Reviewed-by: Yun Liu <yliuyliu@google.com>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754026}
2020-03-27 15:31:38 +00:00
Yun Liu
c0f2f73bc7 [code coverage] Only instrument Java class files related to affected source files for per-CL
Right now Java per-CL coverage instrument everything as full code base coverage.
To only instrument class files related to affected files in a CL, we can:
1. Extract class files only related to affected source files in a jar.
2. Instrument these extracted class files.
3. Extract unaffected members from original jar.
4. Zip everything out to output path.

Bug: 1001387
Change-Id: Iaf6a75c7f8005b5d64eee22bc604f25d0c2fcd8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797109
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Yun Liu <yliuyliu@google.com>
Cr-Commit-Position: refs/heads/master@{#697661}
2019-09-18 17:06:31 +00:00
Yun Liu
02ae34b86f [code coverage] Remove generating JSON file logic in generate_jacoco_report.py
This cl
https://chromium-review.googlesource.com/c/chromium/tools/build/+/1696027
moved generating JSON file logic to recipe side as JSON file only used
by code_coverage recipe.
Only keep html, xml and csv reports for src script.

Bug: 843307
Change-Id: Ic3c03a2daddf0c2b472bb8438d8e6e7bd69fc93d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700544
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Commit-Queue: Yun Liu <yliuyliu@google.com>
Cr-Commit-Position: refs/heads/master@{#678858}
2019-07-18 22:01:44 +00:00
Yuke Liao
43bbbcd535 [code coverage] Update documentation for code coverage
This CL updates the documentation for code coverage.

TBR=jbudorick@chromium.org

Bug: 974379
Change-Id: If9abde5ce40793a7a4d265703fb695126d8f0e56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663371
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671397}
2019-06-21 19:34:50 +00:00
Yun Liu
435bb17199 Add option to generate JSON file for code coverage tool
JSON format defined by code coverage tool proto:
https://cs.chromium.org/chromium/infra/appengine/findit/model/proto/code_coverage.proto

Bug: 843307, 961806
Change-Id: I077fbad4693946b9238c7768a8b9346526aa0099
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614713
Commit-Queue: Yun Liu <yliuyliu@google.com>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661044}
2019-05-17 21:44:34 +00:00
Yun Liu
eaf7a454ee Fix script and doc to generate Java coverage report by Jacoco
Bug: 843307, 961804
Change-Id: I14eb6329d84b86d655c8689249356ffa542c14c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1610650
Commit-Queue: Yun Liu <yliuyliu@google.com>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659996}
2019-05-15 17:27:39 +00:00
Nate Fischer
93c5915741 Docs: consistent fenced code blocks
No change to logic, only docs. This is a mechanical docs change which
should not impact content (but will improve readability).

This edits some Android docs to use fenced code blocks more
consistently:

 * Prefer fenced code blocks over indented code blocks
 * Fix indentation issues (see coverage.md)
 * Specify a language for syntax highlighting where it makes sense
   (particularly, use the "gn" language where it was omitted)

R=agrieve@chromium.org

Bug: 918221
Test: Upload to gerrit > open file > click "gitiles"
Change-Id: I2a4aa292d3bd1cf67bd0a7bcfb0cb01f7b8ede98
Reviewed-on: https://chromium-review.googlesource.com/c/1451357
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628981}
2019-02-05 01:25:08 +00:00
David 'Digit' Turner
40560ef794 android: Document .build_config build files.
This CL is an attempt to document the rather sophisticated
use and content of .build_config files when building various
Android-specific targets with GN for Chromium.

- Add a new documentation build_config.md under
  android/build/docs/

- Add documentation for the .build_config file format
  itself as a Markdown document inside of
  write_build_config.py to make it easier to update
  the documentation along side the script in the future.

  See build_config.md for extraction + visualization
  instructions.

+ Add missing links to Android Build markdown files
  to docs/README.md

+ Reformat coverage.md a little to make it readable.

R=agrieve@chromium.org,yfriedman@chromium.org,estevenson@chromium.org

Bug: None
Change-Id: Ic9bb61e50d578d69dea4ebc721d41feb9f68a5cb
Reviewed-on: https://chromium-review.googlesource.com/949463
Commit-Queue: David Turner <digit@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Eric Stevenson <estevenson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541395}
2018-03-07 09:44:28 +00:00
mvanouwerkerk
0ac0a3726f Update EMMA code coverage documentation.
Review-Url: https://codereview.chromium.org/2426583004
Cr-Commit-Position: refs/heads/master@{#425925}
2016-10-18 09:02:32 +00:00
hzl
1ccac19f89 Added instructions on how to use code coverage.
Added coverage.md file for emma code coverage instructions for both
instrumentation and junit tests.

BUG=608085

Review-Url: https://codereview.chromium.org/2031743002
Cr-Commit-Position: refs/heads/master@{#397474}
2016-06-02 18:23:35 +00:00