384 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
1
replies
69
views
Is it possible to configure pytest-cov to show coverage of data files?
A simple scenario to illustrate the core issue.
My project requires the user to provide a configuration file in YAML format.
I provide a sample configuration file, for example:
env: dev
cpu: 1
mem: ...
6
votes
2
answers
3k
views
go: no such tool "covdata" in Go 1.25
After upgrading to Go 1.25 (specifically 1.25.1) when I run go test -cover I get this message:
go: no such tool "covdata"
The command exits with status 1.
It seems this does not happen ...
0
votes
0
answers
67
views
Is it possible to collect code coverage for a shared library (.so) without using an executable file in LLVM?
I am working with an Android application (APK) that uses JNI and depends on a shared library. I modified the build parameters to include code coverage instrumentation. After running the APK on an ...
1
vote
2
answers
55
views
How to combine unittest with trace module to produce coverage like report?
I know how to use coverage module to get "human readable" coverage output (using popular third party coverage module). This can be used with pytest or unittest (with some differences in the ...
0
votes
1
answer
39
views
.NET CLI code coverage analysis include module not working as expected
As part of the CI/CD for our project we run code coverage analysis on the pipeline using a similar command to:
dotnet test D:\a1円\s\OurSln.sln
--logger trx --results-directory D:\a\_temp
--...
0
votes
2
answers
577
views
How do I merge code coverage information from different tests and coverage files
I have a scenario where
I have multiple tests (for the same source code) that are run in parallel
The code coverage report is generated and stored in separate folders per test
End of the day, I need ...
0
votes
1
answer
122
views
How to add ignore_bins for coverpoint which is defined in base class
How should I add ignore_bin in child class for a coverpoint which is defiened in base class?
I tried extending base covergroup but it shows compilation errors for keyword extend in this context ...
0
votes
0
answers
102
views
Integrationtest-Coverage of an Quarkusapplication with Jacoco and Cucumber shows 0% Coverage
Since two days I am struggling with this issue. I have 4 Microservices all running with Quarkus (for now they are all running with differenct ports on localhost). In a local Maven Module I run ...
1
vote
3
answers
461
views
Why does SimpleCov generate a coverage report before running tests?
I'm trying to build a Ruby gem. I set up a development environment using a Docker image based on Ruby 3.3 and a devcontainer.
I initialized a gem using the bundle gem tooling. This set up the basic ...
1
vote
0
answers
418
views
How to exclude "branch not taken" reporting for specific lines in gcovr?
I am working on a C++ project compiled with g++ --coverage so that unit testing generates coverage metrics, which are converted to html reports by gcovr.
The branch coverage information is misleading, ...
-1
votes
1
answer
136
views
coverage for array with a fixed value of each element
I have a 1D array of 512 elements, which is 8 bit wide.
I want the coverage to hit 100% only when a specific unique value is present in each of these 512 elements.
For eg, let say we had only 4 ...
0
votes
1
answer
136
views
System Verilog: Biitwise coverage for multibit signal
I'm beginner in System Verilog. I want to implement a coverage such that a user will send a signal - lets call it input_signal[Width-1 :0] Where width is variable. I want to have bitwise toggle ...
0
votes
0
answers
216
views
Python Coverage is not increasing using Pytest
I have multiple python modules to be tested and I'm testing it using the tox file with the command "coverage run -m test_folder".
While testing, for few modules I'm getting lower test ...
1
vote
0
answers
85
views
get only test coverage in sonarqube and not run the static code analysis of all the files
I am trying to get only test coverage report generated by jacoco plugin in multi-module gradle project and dont want to run static code analysis(takes lotta time).
I have tried till now:
sonar....
1
vote
1
answer
60
views
Angular conditional coverage inside ngAfterViewInit
I have a code under ngAfterViewInit unable to coverage conditions/branches
As i need to cover 100% on new code, please give me suggestions (currently at 68%)
Tried few tests but not covering branches