code-coverage Questions
4
I'm running a pretty simple set of python projects through sonar-runner and am having issues getting tests to show up.
I'm running Sonar 3.2.1, with Python Plugin 1.1. The coverage report is gener...
Amadoamador asked 11/10, 2012 at 16:40
9
Solved
I've run into a recurring problem with a few different projects using MSTest in VS2012, where every now and then my code coverage stops working (seemingly at random) and instead gives me:
Empty ...
Eure asked 13/9, 2013 at 10:39
1
We are using SonarQube 5.1 with Jacoco maven plugin 0.7.4, and all of our slf4j logging statements such as log.debug('Something happened') show that only 1 of 2 branches are covered. I understand t...
Islamite asked 4/1, 2016 at 19:7
2
Solved
I recently installed VS2019 Prof 16.2 and experience following error when loading .coverage files:
Microsoft Visual Studio
Exception was thrown: Could not load file or assembly 'Microsoft.VisualSt...
Unseen asked 3/8, 2019 at 20:55
3
I have a large .NET Framework solution and want to start collecting code coverage data as part of our build pipeline (as well as on our local developer machines).
On the Coverlet GitHub page it sa...
Cubage asked 12/3, 2020 at 10:2
3
I am running jest test with code coverage in GitLab CI and GitLab captures the percentage from stdout of a runner in gitlab.
jest --coverage produces the coverage in stdout and gitlab captures it ...
Countermark asked 11/6, 2018 at 13:21
11
Solved
I have an enum switch more or less like this:
public static enum MyEnum {A, B}
public int foo(MyEnum value) {
switch(value) {
case(A): return calculateSomething();
case(B): return calculateSom...
Sharice asked 16/3, 2011 at 9:50
4
Solved
I write a project for a non POSIX embedded system so I cannot use gcc option --coverage (i don't have read or write). What else can I do to produce gcov like output. I do have an output function.
Regelate asked 19/12, 2011 at 17:26
3
Solved
I recently used EclEmma plugin in eclipse to find code coverage of JUnits in my application and it worked great.
In the next step, I want to be able to find code coverage for end-to-end tests / fu...
Herwin asked 2/5, 2018 at 11:17
4
Solved
As mentioned in the title, how can I add a Codecov.io badge resembling the coverage of my project?
There is nothing stated about this in the Docs from Codecov.io.
Thanks in advance.
Orthostichy asked 2/1, 2019 at 17:28
7
I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that code coverage data outside of visual studio, say in a web browser. But, when I export the code cover...
Cooler asked 22/7, 2009 at 18:18
1
This was originally a Github Issue in the Dart-Code repository.
1. Context
I've been working on a package that has hundreds of tests, so an easy way of visualizing code coverage would be incredib...
Runyon asked 18/10, 2020 at 17:38
2
Solved
I can see code coverage percentage from Xcode UI. I can navigate to .xcresult file and Coverage.profdata file in DerivedData folder, but these files are not human-readable. How to extract code cov...
Speight asked 26/3, 2021 at 14:52
2
When I run the Jest coverage report, it prints out each type of coverage and the percentage by file. The last column that shows the uncovered lines gets truncated when there are more than ~4-5 line...
Ionone asked 9/1, 2018 at 0:20
3
Solved
I am trying to find dead code on our application by using a code coverage tool (rather a static code analysis tool). I have chosen JaCoCo and am able to get a report thanks to the JaCoCo agent.
I ...
Deas asked 29/1, 2014 at 1:55
1
Solved
Background
I'm new to using pytest and pytest-cov having switched over from unittest + coverage.py
I first set up my automated tests to run in this way:
python3 -m pytest --cov=myapplication
which ...
Parsaye asked 19/2, 2021 at 15:32
1
Solved
I am testing my code with pytest --cov but one of my modules gets 0% coverage.
The module has one class declaration as such:
class DataBaseMaker:
@staticmethod
def create_database():
conn = sqli...
Guerra asked 10/2, 2021 at 22:19
2
Solved
I am trying to get a pytest run to work with a coveragerc file. Settings in my .coveragerc file are not used, so I guess the file is not used at all.
See my project structure and pytest calls belo...
Eugenaeugene asked 30/3, 2012 at 9:52
1
I'm experiencing problems with my github repo configuration. Here it is - umbress. I have Github Actions CI enabled and configured and I want to have the coverage badge in my repo so everyone who w...
Forcefeed asked 23/2, 2020 at 12:19
3
I'm using Jenkins ver. 1.466 with Jenkins Cobertura Plugin ver. 1.5. I generated coverage report for Django project. All charts looks good, but when I want to see source code I have warning message...
Uncanonical asked 30/5, 2012 at 11:43
2
I have a gradle project(java) in intellij. I right clicked the project in intellij and ran Run Tests in projectName with coverage which created some test report on right hand side. In that right ha...
Exoenzyme asked 30/10, 2019 at 14:37
1
I have set up CDash on my local machine and I'm using CTest to upload testing results to CDash - generating .gcov-files containing Branch Coverage info and packing them into gcov.tar beforehand (th...
Aristocrat asked 7/9, 2016 at 16:12
2
Solved
I have a class in Sonar:
public class Foo {
..... much code ....
}
And Sonar is reporting 1/2 branches covered on that public class Foo line. What does this mean? How do you test a line which de...
Disembody asked 7/6, 2013 at 15:44
7
Solved
Is there a simple way to tell which branch I am missing? I.e. I have some code like this:
if (x || y) {
// do stuff
}
In the coverage highlighting there is a yellow dot in Eclipse that says:
...
Neibart asked 19/3, 2013 at 6:43
2
We are currently attempting to use Google's Firebase Test Labs for testing our android app on devices. To test things, I've created a small app that doesn't do anything except get tested, and it's ...
Gundry asked 8/4, 2020 at 12:38
© 2022 - 2024 — McMap. All rights reserved.