5,401 questions
1
vote
0
answers
37
views
Why doesn't pytest-cov fail with a non-zero exit code when code coverage threshold isn't met, when running on multiple directories?
When the average test coverage threshold across multiple modules isn't met, pytest doesn't fail with a non-zero exit code, even though it should.
My command:
❯ pytest --cov module1 --cov module2 --cov ...
0
votes
0
answers
60
views
How to measure .NET MAUI application code coverage triggered by Appium UI automation tests?
I have a .NET MAUI application (targeting .NET 9) that runs on Windows.
In the same repository, I also have a separate Appium-based UI automation project (using .NET 8), which drives the MAUI app ...
0
votes
0
answers
25
views
Ignore compiled files in .NET 9.0 code coverage report
I have an ASP.NET Core 9 Web API project and in the Azure DevOps pipeline, there are compiled files being collected for coverage - and there is no test code for those. For example the Mediator Library....
0
votes
0
answers
42
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 ...
0
votes
0
answers
49
views
Test Coverage Report including foreign namespace MSTest.Analyzers
I am currently loosing it about the attempt to generate test coverage reports for a current Corpo project. This worked flawlessly quite some time and is now running wild.
The tests are done using ...
0
votes
0
answers
59
views
Apache Camel Route Coverage report shows an unrealistically high number of routes
I am using Apache Camel 4.10.6 with the route coverage plugin enabled.
When I run the report, the overall summary looks like this:
[INFO] Overall coverage summary:
Coverage: 54 out of 1509950778 (0.0%...
0
votes
1
answer
68
views
Not all files have gcno with bazel --coverage
NB
I have the custom targets which run by python scripts. So I couldn't use bazel coverage directly for this one.
1.
I defined in .bazelrc
build:coverage --collect_code_coverage
build:coverage --...
0
votes
0
answers
27
views
NX E2E testing not generating coverage
Our project structure looks like this:
apps
|
---api
---api-e2e
with the e2e using @nx/jest for testing.
I'm trying to generate the coverage for API, but haven't been able to do it successfully.
I ...
0
votes
0
answers
53
views
How to remove method or line from sonarqube check in Go?
have a correct method to remove unique method or line from check coverage sonar? like //NOSONAR?
I've tried but I wouldn't like to have to use sonar.exclusions= in my sonar-project.properties file
1
vote
0
answers
40
views
publish coverage from tests in docker container with PublishCodeCoverageResults@2
I have an Azure YML pipeline that runs the tests inside a docker container and produces test and coverage results. However if I try to publish the code coverage it succeeds only party because the ...
2
votes
1
answer
439
views
How to include coverage info in VSCode Testing for CMake C++ (GCC) project?
I am trying to get the "Run Tests with Coverage" button working as expected for a C++ project based on CMake. When I hit it, the tests are executed properly, but then it shows the info that ...
0
votes
1
answer
97
views
Setting up Coverity Check for Arduino Codebase
We have a repository that we build using Arduino IDE and we're trying to setup Coverity Checks for it. I tried using arduino-cli for cov-build but it gives the error "No files were emitted". ...
0
votes
1
answer
83
views
Python code coverage not working for multiprocessing inside site-packages
I have a simple code packages in a module/folder "src"
File sample.py
import multiprocessing
def f(x):
return x*x
def big_run(n):
with multiprocessing.Pool(5) as p:
p.map(f,...
0
votes
0
answers
338
views
How do I convince the CMake Tools extension for VSCode to actually "Run Tests With Coverage"
I am using Visual Studio Code, with the CMake Tools extension from Microsoft (https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools)
In the left bar, there is an icon shaped like ...
0
votes
0
answers
31
views
NYC is complaining about missing TS files
I am using nyc, mocha, and Nodejs (TS) as my tech stack.
I run my Nyc command on precompiled code, i.e., only JS and JS map files are present in the build.
When I run my test command Nyc code coverage ...
2
votes
2
answers
124
views
Enable Code Coverage diff without a target/gate threshold in ADO
I have code coverage enabled and published in my ADO pull request pipeline. I'm looking at adding code coverage diff to it.
The Microsoft Learn Document doesn't mention how to fail a build if the ...
0
votes
0
answers
105
views
LCOV reporting branch coverage for non-branch lines in VHDL code - bug or expected behavior?
I'm working with GHDL (GHDL - v6.0.0-dev - Ubuntu 24.04 (x86-64, LTS) - gcc backend) and LCOV to analyze code coverage for VHDL projects, but I'm encountering unexpected behavior in the branch ...
-1
votes
3
answers
1k
views
How to merge lcov.info files to make a consolidated coverage report?
I have two projects (actually, a project and its sidecar) in the same repository - the server (root) and aux/sidecar (at aux/sidecar folder). I generate coverage for them using jest --coverage calls, ...
1
vote
1
answer
540
views
SonarQube shows 0% coverage with .NET project using GitLab CI/CD Windows runner and Linux container
I'm trying to analyze code coverage in SonarQube for a .NET project using GitLab CI/CD. My setup is:
Windows runner for tests
Linux container for SonarQube analysis
ReportGenerator for coverage ...
0
votes
0
answers
11
views
Command line coverity subcompent
It's possible to create via command line Coverity subcomponents, add a regex to them and assign them to a stream?
0
votes
1
answer
849
views
Fine Code Coverage(FCC) throwing issue while generating the report
In the latest version of VS 17.13.2, FCC is breaking with the below error
System.InvalidOperationException: Failed to load RunSettings file: 'C:\Users\xyz\src\Services.UnitTests\bin\Debug\net8.0\fine-...
3
votes
0
answers
205
views
SonarQube code coverage - exclude code not files
I have an Android project that uses Kover to measure code coverage. These results are then sent to SonarQube. This all works fine except that I want some code to be excluded from code coverage.
This ...
1
vote
0
answers
102
views
Bazel coverage with cache
I have been testing coverage collection with Bazel and wanted to share my findings in response to a point noted in the Bazel documentation on coverage.
Documentation Claim:
The documentation mentions:
...
1
vote
0
answers
50
views
AEM as a Cloud Service - SonarQube REACT Code Coverage
Context
We are implementing a hybrid implementation with AEM + REACT using AEM as a Cloud Service. We are having our REACT code coverage in *.tsx files under ui.frontend module.
We have configured &...
0
votes
0
answers
210
views
Extract total coverage from JaCoCo report
How can we extract the total coverage from JaCoCo? I just need that number to use it for external reporting. I see the coverage total in the Jacoco report (HTML), but do not see it in the jacoco.xml.
...