Skip to content

Add Cobertura exported from Swift support#769

Merged
danielpalme merged 1 commit intodanielpalme:mainfrom
Vovanni:cobertura-swift-parsing-fix
Nov 26, 2025
Merged

Add Cobertura exported from Swift support#769
danielpalme merged 1 commit intodanielpalme:mainfrom
Vovanni:cobertura-swift-parsing-fix

Conversation

@Vovanni
Copy link
Contributor

@Vovanni Vovanni commented Nov 26, 2025

Problem:
The ReportGenerator does not find classes when parsing a report from Xcode (Swift) and returns empty metrics.

Root cause:

  • The classes tag is missing in the Swift Cobertura xml;
  • The signature attribute is also missing in the method tag.

Changes:

  • Add possibility to parse Swift Cobertura;
  • Add unit tests for Swift Cobertura line coverage metrics.

The `classes` section is missing in the cobertura format when exported from Swift. The signature is also missing in the `method` section.
@danielpalme danielpalme merged commit 63b63c6 into danielpalme:main Nov 26, 2025
6 checks passed
@danielpalme
Copy link
Owner

Thank you! The next release will contain this PR.

@danielpalme
Copy link
Owner

Release 5.5.1 is now available

gritcsenko added a commit to gritcsenko/HomeInventory that referenced this pull request Dec 4, 2025
)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[danielpalme/ReportGenerator-GitHub-Action](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action)
| action | patch | `v5.5.0` -> `v5.5.1` |

---

### Release Notes

<details>
<summary>danielpalme/ReportGenerator-GitHub-Action
(danielpalme/ReportGenerator-GitHub-Action)</summary>

###
[`v5.5.1`](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.1...5.5.1)

[Compare
Source](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.1...5.5.1)

###
[`v5.5.1`](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/releases/tag/5.5.1)

[Compare
Source](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.0...5.5.1)

-
[danielpalme/ReportGenerator#766](https://redirect.github.com/danielpalme/ReportGenerator/issues/766):
Added new setting "preserveTrailingEmptyLine".
-
[danielpalme/ReportGenerator#769](https://redirect.github.com/danielpalme/ReportGenerator/pull/769):
Added support for Cobertura files exported from Swift (contributed by
[@&#8203;Vovanni](https://redirect.github.com/Vovanni))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/gritcsenko/HomeInventory).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
ThorstenSauter pushed a commit to ThorstenSauter/dotnet-actions that referenced this pull request Dec 5, 2025
…to v5.5.1 (#25)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[danielpalme/ReportGenerator-GitHub-Action](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action)
| action | patch | `v5.5.0` -> `v5.5.1` |

---

### Release Notes

<details>
<summary>danielpalme/ReportGenerator-GitHub-Action
(danielpalme/ReportGenerator-GitHub-Action)</summary>

###
[`v5.5.1`](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.1...5.5.1)

[Compare
Source](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.1...5.5.1)

###
[`v5.5.1`](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/releases/tag/5.5.1)

[Compare
Source](https://redirect.github.com/danielpalme/ReportGenerator-GitHub-Action/compare/5.5.0...5.5.1)

-
[danielpalme/ReportGenerator#766](https://redirect.github.com/danielpalme/ReportGenerator/issues/766):
Added new setting "preserveTrailingEmptyLine".
-
[danielpalme/ReportGenerator#769](https://redirect.github.com/danielpalme/ReportGenerator/pull/769):
Added support for Cobertura files exported from Swift (contributed by
[@&#8203;Vovanni](https://redirect.github.com/Vovanni))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3
* * * ) (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/ThorstenSauter/dotnet-actions).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiZ2l0aHViX2FjdGlvbnMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants