code-coverage Questions

3

I've got a Swift function for which Xcode is showing 0 passes in code coverage. The line is a closing brace (highlighted in red below). Is this a bug in Xcode? If not, what condition do I need to ...
Sideburns asked 5/1, 2016 at 22:7

3

Solved

When I generate a Jest code coverage report for my Vue 2.7.X app, the lines shown as covered/uncovered in the report don't make any sense: The red sections in this report should indicate code that...
Whitehead asked 6/12, 2022 at 11:45

3

Solved

use case codecov sees super as in need for test, not sure being sure if writing a test for this keyword would be meaningful how to write such a test I'd like to exclude the line from coverage un...
Godart asked 12/2, 2021 at 10:26

2

Solved

I am unable to find a way how to run code coverage in STS4. In Eclipse Oxygen, I needed to do: Right-click on project > Properties > Coverage to enable code coverage Then, right-click on pr...
Downy asked 18/10, 2021 at 1:14

3

Solved

I use coveralls in combination with coverage.py to track python code coverage of my testing scripts. I use the following commands: coverage run --parallel-mode --source=mysource --omit=*/stuff/ido...

3

Solved

I am using coverlet.msbuild v3.2.0 coverlet.collector v3.2.0 and dotnet sdk v6.0.402 When I run this test command in powershell (restore and build ran before that) dotnet test --no-build --no-res...
Hume asked 10/11, 2022 at 8:59

2

Solved

From the llvm-cov docs: llvm-cov show [options] -instr-profile PROFILE BIN [-object BIN,...] [[-object BIN]] [SOURCES] The llvm-cov show command shows line by line coverage of the binarie...
Schoolmarm asked 26/5, 2017 at 17:54

0

I would like to ensure that for each implemented function in my code base there is a corresponding unit test. def top_level_function(): sub_function() def sub_function() print('hello') If I for...
Foulup asked 26/10, 2022 at 14:48

2

Solved

as the title suggests, i'm trying to get the code coverage to work on Azure Devops Pipeline. This is the pipeline: trigger: - master pool: vmImage: 'windows-latest' variables: solution: '**/...
Imphal asked 24/2, 2020 at 20:53

4

Solved

In IntelliJ IDEA 15.0.2 how can I ignore trivial getters and setters (trivial methods) during test coverage measurement? // should be measure public void complex() { fancy(); interesting(); dro...
Araarab asked 22/12, 2015 at 13:58

1

I have a dotcover coverage report generated using dotcover.exe. I want to integrate the report in Jenkins and show the coverage. How can I generate a cobertura or openclover xml from it?
Ligetti asked 30/3, 2020 at 15:44

3

I've downloaded the latest VS2022 v17.1 Community Edition and it doesn't come with Code Coverage in-built. I'm accustomed to the Enterprise Edition and all I can find is paid options for the Commun...
Flitting asked 12/12, 2021 at 6:36

2

Solved

While running the application with coverage, coverage is not showing. I see the difference in my logs compared to working machine logs is coverage-agent.jar is not logged in my console logs. Does a...
Merrymaking asked 1/9, 2019 at 1:43

4

Solved

Background: Visual Studio 2008, C#, .Net 3.5. I have a number of utility classes that are simply not unit-testable. This is mainly because they interact with resources (e.g. databases, files etc)....
Shores asked 21/10, 2009 at 19:0

4

Solved

Utilizing create-react-app, when running tests in my CI pipeline, if the code coverage thresholds are not met, I expect the console to return a non-zero response. package.json "scripts": { "star...
Iridosmine asked 23/10, 2019 at 17:56

2

Solved

I have enabled code coverage in Cobertura format and I am trying to exclude some files (Especially 3rd party DLLs) from Code Coverage analysis in the Azure DevOps pipeline. Currently, below is the ...
Herminahermine asked 14/6, 2022 at 12:6

1

I'm using ember-cli-code-coverage with ember-cli-mocha. When I run COVERAGE=true ember test I'm getting 0% coverage for statements, functions, and lines. Yet, I have tests that are covering those s...

10

I am trying to use coveralls.io to show a coverage badge for my tests, but the coverage badge is stuck on "unknown". The relevant repo is here: https://github.com/cfogelberg/grunt-set-app-mode Wh...
Atherton asked 21/5, 2014 at 15:49

8

Solved

What is code coverage and how do YOU measure it? I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art ...
Moldavia asked 12/10, 2008 at 2:35

1

The Chrome Dev Tools JavaScript and CSS Coverage Drawer is pretty neat, except for one thing... It would be nice if it could be left on, and not reinitiate its analysis between pages. I would like ...
Worn asked 2/8, 2022 at 15:58

2

Solved

I'm trying to ignore some generated classes, and the classes get ignored fine. But if those classes have inner classes, those classes still get included, despite the parent class being excluded. Th...
Halla asked 22/8, 2017 at 9:56

3

Solved

I have tried AndroidStudio's code coverage feature and I have met a strange issue: It is marks the tested class's name as 'not covered' code. How is that possible? Is that a bug? Picture here: ...
Tetragrammaton asked 20/2, 2017 at 15:12

1

I am using Cypress in my react app for integration test. I am facing coverage related problem, coverage report is showing blank. seems like code is not istrumented properly. can someone help me t...
Olfe asked 17/4, 2021 at 8:59

5

Solved

How do I exclude entire files from coverage.py reports? According to the documentation you can exclude code by matching lines. I want to exclude entire files, so that the reports don't include 3rd...
Lindeberg asked 13/10, 2009 at 10:38

3

I am generating code coverage reports with PHPUnit vendor/bin/phpunit --coverage-clover coverage.clover I have a few codebase that use the @covers tag in their tests, indicating the service they...
Lorenzen asked 29/1, 2018 at 1:15

© 2022 - 2024 — McMap. All rights reserved.