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

lcov - create and use gcad files while running

I want to use lcov in some tests I run. Tests are not part of the binary I compiled with lcov. I noticed that lcov create gcda files only after binary is ended. The problem is that I want to run several tests without restarting the binary and still…
user2302639
  • 368
  • 1
  • 2
  • 12
0
votes
0 answers

LCOV branch coverage not dumping data

I am trying to generate code coverage data from gcda using lcov.Following is the command I am using: lcov -c --rc lcov_branch_coverage=1 -d /path -o try_main.info But this is not dumping any data. Following is the process seen: /usr/bin/perl -w…
Suzanno Hogwarts
  • 323
  • 2
  • 3
  • 12
0
votes
1 answer

Lcov-parse usage is not clear

I found lcov-parse tool to parse lcov info file. How could I use it. The usage explained in this link: https://github.com/davglass/lcov-parse/blob/master/README.md is not clear. I need to know where could I use the code to parse and extract info.
R.Omar
  • 645
  • 1
  • 6
  • 18
0
votes
0 answers

Why is sonar failing during SonarQube Scanner execution?

I am trying to create a Jenkins build to generate reports for the client part of my app (eslint and test coverage). I have other jobs that generate sonar reports for different projects on the same Jenkins and Sonar. To generate the lcov.info file I…
Bogdan I.
  • 1
  • 1
0
votes
2 answers

lcov: branches coverage of destructor missing

My working environment cygwin lcov 1.13 GCC 5.4.0 Problem is coverage report in html told that missing branch in destructor but the destructor is empty. I don't know why. Anyone can help me ? I also try with GCC 4.8.0 but same result
TuanPM
  • 685
  • 8
  • 29
0
votes
0 answers

How to change coverage report Source File

Here is my project tree : src - main - js - common -utils.js -common.js - api.js - test - test.js - gruntfile.js - target - work -coverage-reports -lcov.info when the coverage report is generated in my…
Stranger B.
  • 9,004
  • 21
  • 71
  • 108
0
votes
1 answer

lcov html report coverage limits

Lcov has genhtml tool which converts the lcov coverage info file into HTML report. It is possible to color code the results table- indicating low, medium and high coverage with following lcov configuration file…
harish
  • 1,836
  • 3
  • 21
  • 26
0
votes
0 answers

Publishing Karma result in sonar

I'm trying to publish karma report in sonar.Ours is a angularJS application Maven project.Already sonarqube is displaying junit code coverage.I have generated lcov.info file but sonarqube is not picking up the file.I have included following…
0
votes
1 answer

How to merge .gcda files generated by gcovr?

Let me explain the problem first before asking for a solution. We have Appium automation tests for our iOS app. We believe that every test should start from a clean slate (i.e. app installation) instead of relying a previous test to bring the…
Paddy
  • 3,472
  • 5
  • 29
  • 48
0
votes
0 answers

Chutzpah {Transforms Setting} :-.Net Framework Implementation

I am trying to get my angular + JS Coverage report in LCov Format.So tried to implement it as below:- { "CodeCoverageExcludes":   [                  "*/Tests/**/*.js",         "*/Web/App_Themes/test*.js", …
Shian JA
  • 848
  • 4
  • 15
  • 52
0
votes
0 answers

GCOV profilling error : Error writing

I am trying to get coverage for my source file(main_source.c) tested using unit testing via gtest framework. In my program i am creating a shared object of the source file placed in directory A(--coverage flag was set while creation of .so file, I…
user2873508
  • 1
  • 1
  • 1
0
votes
1 answer

Lcov not counting function toplines

I am using lcov to generate coverage information for the project I am working on. It is mostly working, except for some reason it seems to not count the function toplines in every single case. This means that class files that have complete test…
Ben Wainwright
  • 4,224
  • 1
  • 18
  • 36
0
votes
1 answer

SonarQube not reading javascript test coverage from lcov

I'm working on integrating Karma tests in maven and using SonarQube for test coverage reporting. While i'm able to view HTML karma test coverage reports(coverage type HTML in karma.conf.js), i'm not able to view the results in SonarQube when the…
SubSul
  • 2,523
  • 1
  • 17
  • 27
0
votes
1 answer

Interpreting branch coverage on function call

I'm trying to understand a branch coverage report generated with gcov/lcov. This is a section of the output. The issue is on line 84 where I have a glaring minus sign next to a call to a stub function. The stub does not branching statements. How…
jih
  • 19
  • 1
0
votes
0 answers

duplicate symbol _OBJC_CLASS_$_ClassName in

I'm using OCMOCK for class mocking and lcov for code coverage. For OCMock to work i have to set -ObjC flag under "Other linker flag" and for lcov to generate code coverage for .m file i need to add that file under TestTarget -> Compile Source but if…
Varun Mehta
  • 1,733
  • 3
  • 18
  • 39