Questions tagged [lcov]

LCOV is a graphical front-end for GCC's coverage testing tool gcov

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.

The homepage of the project is here.

286 questions
0
votes
2 answers

How to use lcov test coverage tool with Hudson continuous integration?

In my environment developers use lcov from command line when working with source code's module tests. I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of…
Blaise
  • 7,230
  • 6
  • 43
  • 53
0
votes
1 answer

How to ignore some statements in Javascript code coverage when using lcov and istanbul?

How is it possible to make sonarqube take into account directives found in code comments? There is a page on Istanbul describing how to ignore some branches using comments like this /* istanbul ignore if */ if (hardToReproduceError)) { return…
Anthony C.
  • 21
  • 2
0
votes
2 answers

Integrate GCOV with Bjam

I am creating boost unit test cases and I need to get the code coverage for the same. I am planning to use GCOV and LCOV for getting the code coverage. Can someone help me in getting the configuration in Jamfile for GCOV and LCOV integration with…
CodeBeginner
  • 167
  • 1
  • 3
  • 11
0
votes
1 answer

How to use lcov in cross compile environment.?

I'm doing unit testing for device drivers for that i need to use gcov and lcov tools to generate reports.I compiled my code in native machine and the .gcno files are generated perfectly.Then i executed my output file in a arm based board and the…
0
votes
1 answer

Maven LCOVSensor analysing, but not showing up in Sonar

This is part of my mvn sonar:sonar [INFO] [16:26:15.969] Sensor LCOVSensor... [INFO] [16:26:15.971] Analysing D:\app\willem\target\lco v.info [INFO] [16:42:49.902] Sensor LCOVSensor done: 6 ms So that lcov.info is processed, and that lcov.info is…
Willem Mulder
  • 12,974
  • 3
  • 37
  • 62
0
votes
1 answer

Keep getting gcov error when trying to run lcov in Windows command line

I was wondering what else is actually needed in order to run lcov in windows command line? Every time when I run perl lcov, I always get a reminder or errors similar to the following: geninfo: ERROR: need tool gcov! I looked into my bin directory,…
BeraCim
  • 2,317
  • 8
  • 49
  • 78
0
votes
0 answers

Using Lcov in a cluster

I am working in a C/C++ application which solves logical formulas. In order to make a coverage analysis I am using Gcov (http://gcc.gnu.org/onlinedocs/gcc/Gcov.html) executing it in a cluster/Grid and I am partially happy due to the fact that I can…
pafede2
  • 1,626
  • 4
  • 23
  • 40
0
votes
2 answers

gcov can't open source file while using it in Android AOSP

I have following AOSP project setup 1) I have test.cpp in (AOSP root directory)/vendor/myProject/test.cpp 2) In Android.mk i have used LOCAL_CFLAGS += -g -fprofile-arcs -ftest-coverage LOCAL_LDFLAGS += -lgcov 3) When I compile the code i get…
Akshay
  • 1,137
  • 1
  • 10
  • 12
0
votes
2 answers

is Gcov an application based coverage or system based coverage

Is Gcov an application based coverage or system based coverage .gcda files doesn't get generated for all the files. the gcda files are created only for few source files. gcno files are created for all the source files complied with the gcov…
0
votes
1 answer

Handle double quotes in bash script

I'm trying to wirte a bash script that will dynamically construct the command I need to execute. (merging lcov files) So far I'm able to construct the command line, here is the result: #!/bin/bash LCOV_INPUT_FILES="" while read FILENAME; do …
xavier.seignard
  • 11,254
  • 13
  • 51
  • 75
0
votes
1 answer

is it a bug of lcov or meaningful about the different hit count in one function?

10 [ + - ][ + - ] : 2 : Conf::~Conf() {} 11 : : 12 : : 13 : 2 : Conf::Conf( std::string filename, std::string delimiter, 14 : …
0
votes
1 answer

Get LCOV compatible output from JSCover/JSCoverage coverage.xml or jscoverage.json

Summary I've recently switched from using Google's JsTestDriver to Testem but miss LCOV HTML Code Coverage Reports, is there a way to convert JSCover output into LCOV format, so I can use genhtml to create reports like these. Detail I'm working from…
Jamie Mason
  • 4,159
  • 2
  • 32
  • 42
0
votes
1 answer

Customizing HTML ouput of genhtml

I am using lcov and genhtml for code coverage. The output generated by genhtml has CSS style. The HTML window in wxWidgets 2.8.12 does not support CSS style HTML page. Is it possible to get a normal HTML page using genhtml. Regards Johnnie
Johnnie
  • 235
  • 5
  • 13
0
votes
1 answer

libgcov.a missing in gcc 3.23

For some reasons I have to use an older version of gcc, gcc2.96 or gcc 3.23 Using the same, I need to perform a code coverage analysis on some code. However when I try to perform linking with -lgcov option, I get /usr/bin/ld: cannot find -lgcov I…
neorg
  • 516
  • 7
  • 21
0
votes
1 answer

lcov issue generating output file

I have been trying to get the code coverage of some test cases I have been running using lcov. However when I run lcov --directory $PWD --capture --output-file lcov.output I am getting a warning geninfo: WARNING: cannot find an entry for…
neorg
  • 516
  • 7
  • 21
1 2 3
19
20