Git Product home page Git Product logo

lcov's Introduction

Ported to Windows LCOV Code Coverage tool

[LCOV] (http://ltp.sourceforge.net/coverage/lcov.php) 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.

Installation

  1. Install Perl if not installed. For example to C:\Perl

  2. Open Windows Command Processor and run to create association (do not forget to change path to perl.exe)

    assoc .perl=Perl.File
    ftype Perl.File=C:\Perl\bin\perl.exe "%1" %* 
    
  3. Define correct path of GCOV executable in geninfo.perl:

    our $gcov_tool = "C:\\CORRECT_PATH_TO\\gcov.exe";
    
  4. Define correct path of Perl executable in lcov.bat:

    set perl=C:\CORRECT_PATH_TO\Perl.exe
    

HOW TO USE

  1. Compile your project to support GCOV. As a result *.gcno files will be created.

  2. Run your binaries and *.gcda files will be created. You can place them to the same dir with *.gcno.

  3. Go to a project root dir where *.gcda and *.gcno files placed.

  4. Run lcov.bat

    d:\project> d:\lcov\lcov.bat
    Creating gcov\lcov.info ...
    Capturing coverage data from .
    d:\lcov/geninfo.perl . --output-filename gcov/lcov.info --base-directory .Found gcov version: 4.4.2
    Scanning . for .gcda files ...
    
  5. After execution gcov\html dir will be created with html reports for current project.

lcov's People

Contributors

valbok avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.