Skip to content

cobertura Status Bar Percentage Wrong with C# Workspace #437

Open
@terryaney

Description

If I use lcov coverage format, everything seems to work. When using cobertura, the status bar percentage is wrong. Here is cobertura screen shot:

  1. Just tried highlighting that the Approve.cs file is in the correct project/folder that tests were ran on and that there is only a coverage.cobertura.xml file present.
  2. Side coverage highlighting seems to work properly.
  3. The percentage in status bar states 100% coverage (and I've toggled coverage on and off) with the following logging indicating that it seems to be processing file correctly:
[1707144812023][coverageservice]: READY
[1707144946921][coverageservice]: LOADING
[1707144949670][coverageservice]: Loading 3 file(s)
[1707144949670][coverageservice]: c:\BTR\Camelot\Api\WebService.Proxy\Api\tests\Camelot.Api.WebService.Proxy.Tests.Integration\TestResults\lcov.info,c:\BTR\Camelot\Api\DataLocker\Api\tests\Camelot.Api.DataLocker.Tests.Integration\TestResults\coverage.cobertura.xml,c:\BTR\Camelot\Api\WebService.Proxy\Api\tests\Camelot.Api.WebService.Proxy.Tests.Integration\TestResults\coverage.cobertura.xml
[1707144949677][coverageservice]: Loaded 3 data file(s)
[1707144949854][coverageservice]: Caching 951 coverage(s)
[1707144949854][coverageservice]: READY
[1707144949854][coverageservice]: RENDERING

image

If I change the lcov format, everything seems to display correctly:

image

Let me know if I can provide any more info. Thanks.

  • OS: windows
  • Extension Version v2.11.1
  • VSCode Version 1.86.0

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions