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
1 answer

Excluding a file from coverage report in lcov

I tried to remove coverage data on my test driver file "test.c". Below is what I was using after reading some similar questions in SO. $ lcov --remove test.gcda -c -d . -o a.info --rc lcov_branch_coverage=1 but I got an error below. Can anyone…
zell
  • 9,830
  • 10
  • 62
  • 115
0
votes
1 answer

How to generate code coverage with running lcov program at the same time

I have a large project with unittest binaries running on the other machines. So, the gcda files were generated on the other machines. Then, I download them to the local machine but the different dirs. Each of the dirs has the sources code. For…
0
votes
0 answers

Why is LCOV ignoring lines?

I tried running code coverage to see how good my test cases is. Then I found out there are some lines that got ignored by LCOV, like line 6,7,10,13 below. Why does LCOV does not take these into account when lines like line 6 (class domain { )…
Weiyu He
  • 93
  • 7
0
votes
1 answer

Having a shell script refer to XCode build paths

I have a shell script that runs lcov (test coverage) on an iOS project that I have Hudson. Hudson's copy of this project is derived from a Git repository. The way that I have set up now is that whenever the repo is updated or if someone manually…
Apophenia Overload
  • 2,485
  • 3
  • 28
  • 46
0
votes
3 answers

lcov respectively geninfo cannot read gcda files

I'm are trying to setup lcov on a local Windows computer using cygwin and the bash shell. I installed the newest version of lcov downloaded from here: lcov at sourceforge. When I call a specific gcda file, then I get an output. The call is: lcov -c…
MarksSO
  • 63
  • 1
  • 12
0
votes
2 answers

GCOV: gcda files combination

Good afternoon, I'd like to know if it could be possible to combine several gcda files without using the lcov -a tracefile1 -a tracefile2 -o output.html. Actually this is my spec: compile my code on local server excute tests on remote server 1 and…
Totoc1001
  • 338
  • 2
  • 11
0
votes
1 answer

problems with code coverage on sonarqube and azure devops with Angular 6

Hi all and thanks in advance for reading this. I have some problems with the manual execution of unit testing on local and also for running these ones on azure devops and the reporting of the results on sonarqube. When I run ng test I get these…
user3535054
  • 77
  • 1
  • 11
0
votes
0 answers

Sonarqube Lcov Coverage not getting displayed

I am using ReactJS and ran the react-scripts test --ci --coverage for code coverage testing. It created a folder called coverage and inside that i see lcov.info file. I gave this path in the sonar.javascript.lcov.reportPaths=XXX/coverage/lcov.info…
Ranjith
  • 157
  • 1
  • 13
0
votes
1 answer

Cumulating lcov outputs for different absolute directories

I'm using code coverage on different test suites and those suites are launched under different directories. Say my suite1 is launched in directory /path1/mysoft/src and my suite2 is launched in directory /path2/mysoft/src/ I launch lcov in…
mikael-s
  • 310
  • 2
  • 12
0
votes
0 answers

GCOV: GCDA files not generated when to many tests performed

Good morning, I've got a problem when using GCOV within my working environment. Gcov is working very well when I run some tests cases (up to 1000) but no gcda are generated when running more tests. This is how I use it. I compile my code with gcov…
Totoc1001
  • 338
  • 2
  • 11
0
votes
0 answers

lcov struggles with folder structure under Windows

I've got problmes get lcov running smooth in a Windows 7 environmet. I think there are problems with the folder structure of my project. I have the following…
MKFein
  • 79
  • 1
  • 7
0
votes
0 answers

When attempting to use the gcov, an error occurs: Out of memory

When attempting to use gcov, an error occurs: Capturing coverage data from . Found gcov version: 5.4.0 Scanning . for .gcda files ... Found 1 data files in . Processing ./gcov/flat_map.gcda Out of memory! How can I fix it? if anything,…
Ilya
  • 1
  • 1
0
votes
0 answers

Vue.js (2) actions coverage incomplete after unit test

using Vue.js 2 , with vue-resource after running correctly this unit test, the coverage is incomplete as I can see in lcov-report/src/vuex/actions.js.html .., only return api.addNewShoppingList(shoppinglist) is executed (1x), not the code…
user762579
0
votes
0 answers

Is it possible to generate gcov .info files from html files generated using genhtml

I have html report for code coverage.Is it possible to convert this report back to info file format?
Suzanno Hogwarts
  • 323
  • 2
  • 3
  • 12
0
votes
0 answers

lcov -z command freezes the terminal when ever it is run

I'm trying to get a kernel trace from the entire kernel in my virtual machine, which uses VMware Workstation 12 Player,Ubuntu 16.04.2 LTS LTS, and kernel version 4.9.40. I have already recompiled the kernel to enable GCOV using the following…