From 93ed5f640ce24dae3f0bbf8eeb38e3cc83909a60 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 28 Aug 2017 15:55:39 -0400 Subject: Update paths for coverage script in documentation Change-Id: I38ee7e59f4bf9587f43546460c87bb8539121472 Reviewed-on: https://pdfium-review.googlesource.com/12211 Commit-Queue: Ryan Harrison Commit-Queue: dsinclair Reviewed-by: dsinclair --- docs/code-coverage.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/code-coverage.md b/docs/code-coverage.md index 3162b5886c..200a674bb0 100644 --- a/docs/code-coverage.md +++ b/docs/code-coverage.md @@ -74,7 +74,7 @@ echo "use_coverage = true" >> out/Coverage/args.gn ### Usage Generating code coverage information is done via the -`tools/coverage/coverage_report.py` script. This script will build any binaries +`testing/tools/coverage/coverage_report.py` script. This script will build any binaries that it needs, perform test runs, collect coverage data, and finally generate a nice HTML coverage report. @@ -86,7 +86,7 @@ coverage data. This is because the other tests are known to take a long time to run, so they are not included in the defaults. ```shell -tools/coverage/coverage_report.py +testing/tools/coverage/coverage_report.py ``` If the current working directory is not the root of your PDFium checkout, then @@ -98,9 +98,10 @@ you will need to pass in `--output-directory`. An example of all these flags being used: ```shell -coverage_report.py --source-directory ~/pdfium/pdfium \ - --build-directory ~/pdfium/pdfium/out/Debug_with_Coverage \ - --output-directory ~/Documents/PDFium_coverage +testing/tools/coverage/coverage_report.py \ + --source-directory ~/pdfium/pdfium \ + --build-directory ~/pdfium/pdfium/out/Debug_with_Coverage \ + --output-directory ~/Documents/PDFium_coverage ``` To run different tests then the default set, there are two ways to achieve @@ -108,7 +109,7 @@ this. If you want to run everything, including tests that are known to take a long time, then you just need to add the `--slow` flag. ```shell -tools/coverage/coverage_report.py --slow +testing/tools/coverage/coverage_report.py --slow ``` If you want more fine grained control, including running just a single test, you @@ -119,7 +120,7 @@ by running the script with `--help`. An example running the default tests explicitly: ```shell -tools/coverage/coverage_report.py pdfium_unittests pdfium_embeddertests +testing/tools/coverage/coverage_report.py pdfium_unittests pdfium_embeddertests ``` NOTE: -- cgit v1.2.3