Questions tagged [gcovr]
114 questions
0
votes
1 answer
gcovr generates empty report with --add-tracefile --html-details
I was trying to generate a code coverage report from trace1.json. The trace1.json was not generated by gcovr, it was generated using Lauterbach software from the real hardware trace data. From Lauterbach spec, it has the ability to export coverage…

Apprentice.Hou
- 3
- 2
0
votes
0 answers
How to get Code Coverage Report on Sonarqube for C++ library
I am trying to display code coverage for my project in sonarqube.
The closest I got so far is that it shows the coverage on header files, but not on source files.
My Setup:
I have a project with multiple modules and want to get the coverage for a…

tabs
- 1
- 1
0
votes
1 answer
gcovr compare two reports
I find it really difficult when refactoring huge codebase, changing tests etc. to find on my code coverage report what lines I'm no longer covering.
Is there any tool/way to get diff from two reports?

Mahashi
- 119
- 7
0
votes
0 answers
Getting the decision coverage HTML report with gcovr
I am using gcovr to generate the coverage analysis of some unit tests, and wanted to generate the HTML decision coverage report.
I am using Matlab, and am calling gcov and gcovr and generating the report following the instructions in the gcov 5.1…

c.belmonte
- 11
- 1
0
votes
1 answer
gcovr with Cobertura XML output gives absolute path of production files
I have managed to show code coverage data with Cobertura XML in Jenkins.
Its works well, but I wants to see the source code in Jenkins, too.
I accidentally saw, that Jenkins is referring for the source files at my windows harddrive, but the files…

user19471767
- 47
- 4
0
votes
1 answer
gcov and gcovr: no .gcno files are generated after compiling
I am trying to get code coverage in my unit test project in windows system.
Description
After compiling with -fprofile-arcs -ftest-coverage, I found out the execution file is generated and works fine. However there's no any .gcno files in the…

Risusdan
- 61
- 7
0
votes
2 answers
How to config GCOV for coverage Testing for a Driver(Ethernet Driver)?
I am trying to use GCOV to test a Device Driver eg: Ethernet Driver wrote in C language.
This driver is in Userspace and has a lot of Kernelspace calls.
Using a Linux Ubuntu machine Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-96-generic x86_64)
On compiling…

Vinay Kumar
- 9
- 2
0
votes
1 answer
ImportError: No module named lxml , although lxml is installed
I'm trying to install gcovr tool in virtualenv and tools installs well, but on running the binary, i see warnings with lxml , how do i fix this?
Commands used:
pip install virtualenv
virtualenv env
source env/bin/activate
wget…

Sbk3824
- 1,229
- 1
- 14
- 24
0
votes
0 answers
GCOVR Processes all files but then shows "Gathered coveraged data for 0 files"
I'm using Cygwin GCC 11.2.0 on Win10 with gcovr 5.0. My C files are compiled with the --coverage flag and the .gcno files are created. After running my program the .gcda files exist as well and if I open them in Eclipse with the GCOV extension I see…

Daniel
- 403
- 2
- 15
0
votes
1 answer
Problems with gcovr and regex expressions
I am trying to merge coverage data from specific files from multiple runs into a single "report". In each project I generate test coverage for different files, each in a separate project folder and then at the end I pick and choose what files to…

Ken 99
- 19
- 3
0
votes
1 answer
Why does gcovr generates empty report
gcovr, despite providing complete arguments list, generates empty reports?
Command: gcovr -r /home//Projects/ --object-directory
0
votes
0 answers
Configuring suitable target with CMake for gcov
I have followed this link(https://jhbell.com/using-cmake-and-gcov) to integrate gcov in CMake. But it is only working when all the test cases are passed. My few of the Google test cases are getting failed, so cmake is stopping generating the…

Shital Jadhav
- 39
- 3
0
votes
0 answers
How to generate complete GCOV report when few testcases gets failed?
I need to generate the test coverage report and I have observed that when all the google testcases gets passed then only GCOV generates the coverage report. But now few of the testcases are getting failed. Is there any way to generate test coverage…

Shital Jadhav
- 39
- 3
0
votes
1 answer
No colours in gcovr 5.0 --html-details report
I've been using the gcovr module for monthly report generation. I work on docker, so each time I used to download the gcovr module using pip3 command on my Linux container.
Recently, after downloading the module, I realized that the version of the…

User123
- 1,498
- 2
- 12
- 26
0
votes
2 answers
.gcda file coverage info not getting updated when two executables run for same source file
There are three files u1.c , u2.c and common.c
content of ut1.c
#include
void fun1();
int main(){
fun1();
}
content of ut2.c
#include
void fun2();
int main(){
fun2();
}
content of common.c
void fun1(){
…

Learner09
- 9
- 1
- 5