Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Publish merged code coverage reports from GitHub Actions

未关闭
#613 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 7 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
44/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp, github-actions

调研方向

Start with .github/workflows/tests.yml and trace the existing .NET 10 core and provider test jobs, their Microsoft.Testing.Platform configuration, and test result publishing. Design the coverage collection and merge flow around those jobs, keeping .NET 8 and .NET 9 runs out of the report; document tool versions, artifact locations, retention, local reproduction, and linked source copies. Done means PR and dev runs publish a merged HTML report and Markdown summary, preserve available coverage when a suite fails, and visibly diagnose missing coverage without adding a threshold.

由索引模型根据 Issue 内容生成。

描述

Is your feature request related to a problem? Please describe.

Coverage reports currently require a local collection run. The existing GitHub Actions test jobs publish test results, but do not provide a merged coverage report that contributors can use to identify untested behavior or review changes.

This makes it harder to discover meaningful gaps in behavioral tests and keep coverage information current as the code changes.

Describe the solution you'd like

Add coverage collection and reporting to Eventuous's existing reusable test workflow, .github/workflows/tests.yml, for pull requests and pushes to dev.

  • Collect coverage from the .NET 10 core and provider test jobs, preserving the current split between jobs and the existing .NET 8 and .NET 9 correctness tests.
  • Use coverage collection tooling compatible with this repository's Microsoft.Testing.Platform runner.
  • Upload uniquely named coverage artifacts from each job and merge them in a reporting job.
  • Generate a browsable HTML report and a Markdown summary containing line and branch coverage, including an assembly breakdown.
  • Upload the HTML report as a downloadable Actions artifact and publish the summary to GITHUB_STEP_SUMMARY.
  • Exclude test assemblies, SUT fixtures, and test helpers. Document how linked source files compiled into multiple production assemblies appear in the report, so an uncovered copy is not confused with wholly untested source.
  • Pin coverage and reporting tool versions and document a local reproduction command.

Reuse the existing test executions where practical. Do not introduce an additional whole-solution test run or combine all provider containers on one runner.

The implementation should also meet these requirements:

  • Pull request and dev workflows publish a coverage summary and downloadable HTML report.
  • The report merges the intended .NET 10 core and provider suites, without counting the .NET 8 and .NET 9 runs again.
  • Test failures continue to fail CI. Available coverage is retained when tests fail, and incomplete reports clearly identify missing suites.
  • A successful test run with unexpectedly missing coverage produces a visible failure or diagnostic rather than silently publishing a complete-looking report.
  • Report filters exclude non-production assemblies and explain linked source-file copies.
  • Fork pull requests can produce reports without repository secrets or additional write permissions.
  • Coverage artifacts are kept separate from test-result artifacts, or the test-result publisher is narrowed so it does not parse Cobertura XML as test results.
  • Tool versions, artifact locations, retention, and local reproduction steps are documented.
  • No minimum coverage percentage or coverage-based merge gate is introduced initially.

Describe alternatives you've considered

  • Continue generating reports locally. This is useful for focused investigation, but requires manual work and does not provide a consistently available report for contributors.
  • Add a separate whole-solution coverage run. This duplicates test execution and could recreate the resource and container-startup problems addressed by the current split test jobs.
  • Use an external coverage service. That could provide historical trends and PR comparisons, but downloadable Actions artifacts and a job summary would meet the initial need without an additional service.
  • Enforce coverage thresholds immediately. Establish a reliable baseline first, then consider thresholds or changed-line coverage in a separate issue.

Additional context

Validate a normal workflow run and a run with a failing test or missing suite artifact. Confirm that the summary matches the merged report and that existing test-result publishing still works.

Coverage should help locate missing behavioral tests and investigate regressions. A higher percentage alone is not a reason to add a test. Consider thresholds or changed-line coverage separately once the baseline is reliable.

Related coverage work:

  • #605: HTTP command result mapping
  • #606: Subscription partitioning
  • #607: SQLite projections
  • #608: Event-store dependency injection registrations
  • #609: Tiered event store
主要语言
C#
星标
512
派生
99
平均合并
5 天 6 小时
30 天内合并 PR
5

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Eventuous/eventuous 的其他 Issue

查看 Eventuous/eventuous 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。