• Home
  • Raw
  • Download

Lines Matching +full:report +full:- +full:coverage

1 # Code Coverage Tool for Pytorch
5 This tool is designed for calculating code coverage for Pytorch project.
6 …enerate both file-level and line-level report for C++ and Python tests. It will also be the tool w…
11 * *Argument `--clean` will do all the messy clean up things for you*
21 * *Final report:*
22 * File-Level: The coverage percentage for each file you are interested in
23 * Line-Level: The coverage details for each line in each file you are interested in
24 …* Html-Report (only for `gcc`): The beautiful HTML report supported by `lcov`, combine file-level
26 * Use different stages like *--run, --export, --summary* to achieve more flexible functionality
33 The first step is to [build *Pytorch* from source](https://github.com/pytorch/pytorch#from-source) …
34 See: [how to adjust build options](https://github.com/pytorch/pytorch#adjust-build-options-optional…
37 cmake .. -DUSE_CPP_CODE_COVERAGE=ON -DBUILD_TEST=ON -DCMAKE_BUILD_TYPE=Debug
42 The tool will auto-detect compiler type in your operating system, but if you are using another one,…
50 Great, you are ready to run the code coverage tool for the first time! Start from the simple comman…
52 python oss_coverage.py --run-only=atest
56 python oss_coverage.py --run-only=atest --interest-only=aten
60 python oss_coverage.py --run-only=test_complex.py
65 python oss_coverage.py --run-only=atest c10_logging_test --interest-only aten/src/Aten c10/core
68 … in it) and `test/` folder (by running `run_test.py`), and then collect coverage over the entire *…
76 The code coverage with `gcc` compiler can be divided into 3 step:
77 1. run the tests: `--run`
78 2. run `gcov` to get json report: `--export`
79 3. summarize it to human readable file report and line report: `--summary`
87 python oss_coverage.py --run-only=atest --interest-only=aten
88 # you may then want to learn atest's coverage over c10, instead of running the test again, you can:
89 python oss_coverage.py --run-only=atest --interest-only=c10 --summary
94coverage. But sometimes the test take very long time and you don't want to wait to run it again wh…
97 python oss_coverage.py --run-only=test_nn.py
100 # then you want to learn about code coverage, you can just run:
101 python oss_coverage.py --run-only=test_nn.py --export --summary
106 1. run the tests: `--run`
107 2. run `gcov` to get json report: `--merge` `--export`
108 3. summarize it to human readable file report and line report: `--summary`
110 Therefore, just replace `--export` in `gcc` examples with `--merge` and `--export`, you will find i…
115 …, read [Invoking gcov](https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html#Invoking-Gcov) will b…
118 …liar with the procedure of generating code coverage report by using `clang`, read [Source-based Co…