Skip to content

Wrong source path in cobertura report with similar project name starts #197

@zabomate

Description

@zabomate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtenet-reportersIssue related to coverage output files(reporters)up-for-grabsGood issue for contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions