code-coverage Questions
2
Solved
Currently I have a bunch of unit tests for my C++ project, but I am not (yet) testing the code coverage. I am compiling the tests with -O3 optimization flag to expose potential subtle bugs, but it ...
Blaineblainey asked 29/4, 2016 at 5:27
1
Solved
I would like to set the regular expression for my test coverage results.
According to Gitlab's documentation, I should be able to do that in the test coverage parsing setting in my project settings...
Estivate asked 23/6, 2022 at 19:41
1
Solved
I want to exclude all auto generated migration files from code coverage caculation. I can't change the dotnet test command in the build pipeline so I guess my only friend is the [ExcludeFromCodeCov...
Trave asked 17/1, 2022 at 5:54
1
Solved
I am trying to improve my unit tests by inspecting my current code coverage percentage. I am using gcov and lcov to produce a HTML report of the coverage results. However, I am having problems unde...
Bantling asked 19/12, 2016 at 16:31
4
Solved
I have some classes that, for one reason or another, cannot be or need not be unit tested. I'd like to exclude these classes from my coverage metrics so that I can get a better feel for the coverag...
Remonstrance asked 17/8, 2009 at 17:54
1
I find hpc really confusing, even after reading several explanations and playing around quite a bit.
I have a library HML, and two test suites fileio-test and types-test, using HTF (I plan on movin...
Counseloratlaw asked 17/11, 2017 at 5:19
1
Solved
I'm trying to understand how to properly structure a C++ project by using CMake, googletest, and gcov for test coverage. I would like to build a general CMakeLists.txt that would work for any platf...
Highchair asked 21/5, 2022 at 16:16
1
I'm trying to see the code coverage of sumbose/iRF, so I did a git clone, started an R session inside of the directory, and
> library(covr)
> package_coverage()
Error in file(con, "r") : can...
Gemology asked 4/7, 2019 at 22:3
6
In Jest, is there any way to ignore code for test coverage?
I tried using
/* istanbul ignore next */
But it doesn't seem to work.
Severalty asked 3/8, 2016 at 9:51
2
Since we updated to SonarQube 6.2 it seems code coverage plugin got merged in the core.
It shows red flags everywhere and I can’t find how to turn it off, we do not use code coverage.
Tamaru asked 22/2, 2017 at 10:48
1
We are trying to report code coverage of tests against a pre-packaged JAR file using JaCoCo. To do this we start the JAR file using java -jar with the additional argument:
-javaagent:${project.bas...
Rap asked 19/2, 2018 at 7:33
4
Solved
When I run ng test --code-coverage, The coverage report is sometimes not generating, sometimes it is generating so I'm unable to verify the coverage statement after doing test suites.
My Karma conf...
Ovida asked 2/8, 2019 at 8:3
4
Solved
My hypothethical scenario is this:
I have run my junit tests and generated a jacoco file
my git diff shows I have changed 10 lines of code
Now the intersection of my git diff and the jacoco inf...
Teufert asked 25/1, 2017 at 12:43
3
In our code, there are quite a lot of logging fragments like this:
if(logger.isDebugEnabled()) {
logger.debug("...")
}
Is it possible to configure SonarQube so that such code blocks are not inc...
Rudiment asked 18/5, 2015 at 9:49
4
Solved
I have tried hundreds of times but I am still unable to find that codeCoverage file generated in VSTest task.
See the following code.
I simply want to publish the Code Coverage report to the pipe...
Galacto asked 24/7, 2019 at 7:46
3
Solved
My project-structure
stuff/stuff.go -> package: stuff
test/stuff/stuff_test.go -> package: test
Although stuff_test executes code from stuff.go it shows
coverage: 0.0% of statements
I used
g...
Headwards asked 30/12, 2015 at 19:13
9
I'm trying to run coverage with karma, and I get the warning: WARN [preprocess]: Can not load "coverage", it is not registered!
I thought I installed coverage when I ran 'npm install -g karma-cove...
Edyth asked 6/8, 2013 at 0:14
1
I have a unit test that tests my target application. My target application depends on a dynamic framework.
When the code coverage results come back, it lists my target application's code coverage ...
Tjon asked 15/12, 2016 at 23:41
1
When I run this command ng test --browsers=ChromeHeadless --source-map=false --code-coverage=true --watch=true, I note that my tests return the following code-coverage summary:
Code Coverage Witho...
Sectarian asked 6/5, 2019 at 20:28
2
See the demo app by doing npm run test:2 https://github.com/adamchenwei/jest-playground.git
You will see the App.js is 100% covered, and it only really has a snapshot.
Are there ways we can tell ...
Brownlee asked 21/11, 2017 at 15:23
9
I'd like to be able to produce a HTML based report from the Results.trx and data.coverage files that MSTest creates. Ideally this would just list any failures, and show some basic coverage stats.
...
Peregrinate asked 24/2, 2009 at 12:30
2
Solved
I want to use jacoco maven plugin for checking minimum level of code coverage during build process using 'check' goal.
For one-module project everything works fine.
But for multi-module I want to...
Forcer asked 4/8, 2016 at 9:20
4
I'm getting zero code coverage reported on a select group of classes, when running Gradle's Jacoco plugin. I have confirmed all unit tests, which tests these classes, have successfully ran.
What i...
Utile asked 21/5, 2015 at 19:44
1
I have a .NET Core application which has got one .NET Standard 2.1 project in it. I am using Coverlet to get the code coverage in Cobertura format.
I am using "coverlet.msbuild" nuget pac...
Escape asked 20/10, 2020 at 13:5
1
Solved
I am trying to measure code coverage with a code that uses threads created by the python threading module.
I am using coverage to measure coverage.
However I can not get the code that is run within...
Zymometer asked 7/2, 2022 at 14:58
© 2022 - 2024 — McMap. All rights reserved.