Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| student:gcov:start [2019/09/25 14:42] – bernstdh | student:gcov:start [2025/08/21 16:21] (current) – bernstdh |
|---|
| ====== gcov/lcov ====== | ====== gcov/lcov ====== |
| |
| [[ https://gcc.gnu.org/onlinedocs/gcc/Gcov.html | gcov ]] is a test coverage tool for the GCC (GNU Compiler Collection). [[ https://wiki.documentfoundation.org/Development/Lcov | lcov ]] is a graphical front-end ''gcov''. "It collects ''gcov'' data for multiple source files and creates HTML pages containing the source code annotated with coverage information." | [[ https://gcc.gnu.org/onlinedocs/gcc/Gcov.html | gcov ]] is a test coverage tool for the GCC (GNU Compiler Collection). [[ https://wiki.documentfoundation.org/Development/Lcov | lcov ]] is a graphical front-end for ''gcov''. "It collects ''gcov'' data for multiple source files and creates HTML pages containing the source code annotated with coverage information." |
| |
| ==== Before Using gcov/lcov ==== | ==== Before Using gcov/lcov ==== |
| The color-coded report will look something like the following. | The color-coded report will look something like the following. |
| |
| {{:student:gcov:lcov_coverage-report.png}} | {{:student:gcov:lcov_coverage-report.png|Example coverage report}} |
| |
| This report makes it easy to see that the ''getPurchases()'' method was not covered by the tests. | This report makes it easy to see that the ''getPurchases()'' method was not covered by the tests. |
| |