gcovr Questions
0
I'm using gcov for unit testing coverage analysis in my C++ project, which includes regions parallelized using OpenMP. Upon reviewing the gcov results, I've noticed that the lines parallelized with...
2
Solved
When I add LCOV_EXCL_START/STOP tags to my C++ code, it does not seem to have any effect on my gcovr report.
Does someone know why this occurs?
I have the following:
$ tree
.
├── build
├── inclu...
5
Solved
I have c++/c application with a lots of unit tests. I would like to get overall coverage and also individual coverage of each test with condition that each test can be run only once.
Format of cove...
Dutchman asked 20/10, 2014 at 15:16
1
2
mkdir -p /tmp/build &&
cd /tmp/build &&
mkdir -p /tmp/src &&
echo "int main(){return 0;}" > /tmp/src/prog.c &&
gcc --coverage -o prog /tmp/src/prog.c &&
....
Bellyache asked 12/5, 2017 at 10:0
1
Solved
Let's start with a minimal working example:
main.cpp:
#include <iostream>
#include <string>
int main() {
std::cout << "hello " + std::to_string(42);
return 0;
}
I compile th...
Stig asked 22/9, 2017 at 14:32
1
Solved
I am running gcovr (3.3) on an out of source build like:
gcovr --root=/path/to/source --object-directory=/path/to/build
Now I want to exclude two different things from the report:
1) Any .cpp fi...
Daphnedaphnis asked 24/9, 2016 at 2:14
2
so the hot new feature in Xcode 7 is code coverage integrated within XCode - yaaay! With this new feature also comes Apple's new code coverage format .profdata.
We need to display code coverage r...
Windblown asked 22/10, 2015 at 17:38
1
Solved
On one project, I'm running the test cases on three different executables, compiled with different options. Depending on the options, some code paths are taken or not. Right now, I'm only using the...
Dalliance asked 14/6, 2015 at 18:34
1
Solved
I'm using gcov to measure coverage in my C++ code. I'd like to be able to mark certain lines of source code so that they are excluded from coverage reporting when using gcovr. I know they exist bec...
Kwangtung asked 23/12, 2014 at 15:54
1
© 2022 - 2024 — McMap. All rights reserved.