question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong source path in cobertura report with similar project name starts

See original GitHub issue

Hi there,

I have 3 project in my solution:

  • DAL
  • DAL.MySql
  • DAL.MsSql

When I generate a cobertura report I get a report with the following sources part.

<sources>
    <source>{Path to my solution}\DAL</source>
</sources>

I think this is a mistake since this is not a common parent folder for each 3 project. I think the following line of code is responsible for that because it is checking that every modules’ path starting with the same string even though in this case it is true it is not a common parent folder for the modules.

https://github.com/tonerdo/coverlet/blob/5217033c744f27f63db3fd1339ed3d8faa5fb34d/src/coverlet.core/Reporters/CoberturaReporter.cs#L149

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
daveMuellercommented, Oct 19, 2019

@MarcoRossignoli is it ok when I analyze this and create a pr?

0reactions
MarcoRossignolicommented, Nov 21, 2019

thank’s Dave for analysis

Read more comments on GitHub >

github_iconTop Results From Across the Web

Since Jest 25, coverage reports are having a different ...
I solve it moving the "coverageReporters" configuration from "jest.config.js" at root folder to "jest.config.ts" at project folder, ...
Read more >
Inline coverage not interpreting Cobertura source path
I'm trying to gather code coverage on a PHP project using PHPUnit's Cobertura reporter. However, I can only get the inline coverage ......
Read more >
Could not get any cobertura coverage info in SonarQube
No path issue though as if I use the generic coverage parameter, it chokes on ill formed xml. I may provide the coverage...
Read more >
No Python code coverage on Pull request even though ...
The error is telling you that analysis doesn't see the files listed in the coverage report. Typically that's a path mis-match. So that's...
Read more >
Publish code coverage results v1 task
Specifying a path to source files is required when coverage XML reports don't contain an absolute path to source files.
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