Skip to content

[repo-assist] eng: add code coverage collection to CI #189

@github-actions

Description

@github-actions

🤖 This is an automated PR from Repo Assist.

What

Wires the existing coverlet.collector and coverlet.msbuild packages (already in the test project) into the CI run so coverage data is collected and uploaded as an artifact on every build.

Changes

  • .github/workflows/ci.yml: add --collect "XPlat Code Coverage" --settings tests/coverlet.runsettings to the dotnet test step; upload coverage.cobertura.xml as a second artifact.
  • tests/coverlet.runsettings: new file — scopes collection to the library assembly only, excludes the test assembly and generated code attributes, and sets output format to Cobertura.

Why

The maintainer listed "CI code coverage reporting (coverlet integration)" as a backlog item. The packages were already present but unused. This minimal change activates them without adding any new dependencies.

Test Status

✅ Build passed, 1437 tests pass, coverage.cobertura.xml generated successfully (confirmed locally).

Targets: develop


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 27694810959 -n agent -D /tmp/agent-27694810959

# Create a new branch
git checkout -b repo-assist/eng-ci-coverage-2026-06-17-541206de049992f2 develop

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-27694810959/aw-repo-assist-eng-ci-coverage-2026-06-17.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-ci-coverage-2026-06-17-541206de049992f2
gh pr create --title '[repo-assist] eng: add code coverage collection to CI' --base develop --head repo-assist/eng-ci-coverage-2026-06-17-541206de049992f2 --repo NichUK/FixedPointNano

Generated by 🌈 Repo Assist, see workflow run. Learn more.

Add this agentic workflows to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@e15e57b40918dbca11b350c55d02ab61934afa75

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions