commit | ced90e35c133e69bce240cfba31c064ef8cd0c56 | [log] [tgz] |
---|---|---|
author | Ben Reich <benreich@chromium.org> | Thu Dec 17 03:20:44 2020 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 17 03:20:44 2020 |
tree | fcffa951014988fa9cb79ebbdb8754d9a302e436 | |
parent | 29a2328d6352c699271c3159c7119cc6c35f4639 [diff] |
[js-code-coverage] Get line coverage metric summary Extract out the line coverage metric summary on a per file basis. Shuffles a larger mock output into a class variable to use across tests. Bug: 1113941 Test: ./recipes.py test run Test: ./generate_coverage_metadata_for_javascript_test.py Test: python generate_coverage_metadata_for_javascript.py \ --src-path chromium/src \ --coverage-dir chromium/src/out/Default/devtools_code_coverage \ --dir-metadata-path component_mapping \ --output-dir none Change-Id: I180e216a05b60a85b20816c59b37e4f46ea9303b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2589156 Reviewed-by: Zhaoyang Li <zhaoyangli@chromium.org> Commit-Queue: Ben Reich <benreich@chromium.org>
If you're here to make a change to ‘recipes’ (the code located in scripts/slave/recipes*
), please take a look at the README for more information pertaining to recipes.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style. Functions use lowercase_with_underscores
, with the exception of the special functions RunSteps
and RunTests
in recipes. Use yapf (git cl format --no-clang-format
) to autoformat new code.