601 captures
15 Aug 2003 - 09 Mar 2026
Jul AUG Sep
21
2019 2020 2021
success
fail

About this capture

COLLECTED BY

Collection: Save Page Now

TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20200821164536/http://ltp.sourceforge.net/coverage/lcov.php
 
Linux Test Project





Home

Documentation

Archive

|

LTP

Coverage

DOTS




News

Usage Map

Wiki

Project Page



How-To

Technical Papers

Test Plans

Test Tool Matrix



Test Results

Known Errors

Old Pages



How-To

Contents



About

lcov

gcov



User Guide






Coverage

lcov



LCOV - the LTP GCOV extension

About LCOV


LCOV is a graphical front-end for GCC's coverage testing tool gcov. It collects gcov data for multiple source files and creates HTML pages containing the source code annotated with coverage information. It also adds overview pages for easy navigation within the file structure. LCOV supports statement, function and branch coverage measurement.

Example output


HTML output of a small example project.
Screenshot of an overview page generated by LCOV   Screenshot of a page of source code annotated with coverage information generated by LCOV
Screenshot 1: Overview page Screenshot 2: Annotated source code

Note: source code and Makefile for this example are part of the .tar.gz file (see download section).

Download


Latest release: LCOV 1.14 (changelog).


lcov-1.14-1.noarch.rpm


Source code: LCOV is released under the GPL license.


lcov-1.14-1.src.rpm

lcov-1.14.tar.gz

Git snapshot: get LCOV development version as .zip file

Git access:  
git clone https://github.com/linux-test-project/lcov.git


Browse LCOV development version

Quickstart


Instructions on how to quickly get started with lcov:


(一)Ensure that the project is built using GCC

(二)Add --coverage to compiler and linker flags (for example CFLAGS and LDFLAGS)

(三)Compile and run

(四)Collect coverage data:
 
lcov --capture --directory project-dir --output-file coverage.info


(五)Generate HTML output:
 
genhtml coverage.info --output-directory out


Documentation



README file

man pages: lcov.1, genhtml.1, lcovrc.5, geninfo.1, gendesc.1, genpng.1

Contributing to LCOV


Please see the Contribution guidelines  for instructions on how to contribute to LCOV.

Comments And Questions


For comments and questions contact: ltp-coverage@lists.sourceforge.net




Sourceforge.net  Last modified on: March 04, 2019 - 09:47:49 UTC.
Theme: