jacoco - No lines with coverage information in this diff

See original GitHub issue

use the following command, prompt “No lines with coverage information in this diff.”

diff-cover coverage.xml --compare-branch=origin/develop

Diff Coverage Diff: origin/develop…HEAD, staged and unstaged changes No lines with coverage information in this diff.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dknebulacommented, Jun 30, 2019

@Bachmann1234 @sunmoondeer thanks for your help.

There are several modules in my project.

.
├── module1
│   ├── pom.xml
│   └── src
│       └── main
│           └── java
├── module2
│   ├── pom.xml
│   └── src
│       └── main
│           └── java
├── pom.xml

Although I can not get the whole diff info directly, I can get the module diff in the project.

diff-cover coverage.xml

Diff Coverage Diff: origin/master…HEAD, staged and unstaged changes No lines with coverage information in this diff.

diff-cover coverage.xml --src-roots module1/src/main/java

… Total: 188 lines Missing: 107 lines Coverage: 43%

0reactions
keyescgmcommented, Jun 14, 2019

how can i do? always show the result: No lines with coverage information in this diff. headache·· I’ve tried all methods

Read more comments on GitHub >

github_iconTop Results From Across the Web

jacoco - No lines with coverage information in this diff · Issue #99
use the following command, prompt "No lines with coverage information in this diff." diff-cover coverage.xml --compare-branch=origin/develop Diff Coverage ...
Read more >
Jacoco - How to check which lines are missing coverage
I have set the verification rule to limit minimum coverage to 1.0 (100%). I have a few classes in my code which are...
Read more >
Sonarqube coverage does not match the Jacoco report it has ...
I'm producing an aggregate Jacoco report and setting sonar scanner ... [INFO] 12:13:20.351 No report imported, no coverage information will ...
Read more >
Coverage Counter - JaCoCo - EclEmma
JaCoCo uses a set of different counters to calculate coverage metrics. All these counters are derived from information contained in Java class files...
Read more >
diff-cover — diff-cover latest documentation
The diff-cover command line tool compares an XML coverage report with the output of git diff . It then reports coverage information for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found