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

Add test coverage reporting with a minimum per package

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
70/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, typescript
领域
ci-cd, testing, tooling

调研方向

Start with vitest.config.ts, the root package manifest, and the CI test step; check CONTRIBUTING.md for setup notes and build before testing. Add the matching coverage provider, configure src/** coverage and per-package line and branch thresholds, then run pnpm test:coverage on dev to measure and verify the package table. Done when CI uses that script and it passes with thresholds rounded down to the nearest 5.

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

描述

enhancement good first issue hacktoberfest testing

vitest.config.ts only lists the three test projects, and no coverage provider is installed, so we can't see which code has no tests.

What to do

  • Add @vitest/coverage-v8 (matching the installed vitest major) as a root dev dependency.
  • Configure coverage for packages/core, packages/server and packages/widget, covering src/** only, with the text and lcov reporters.
  • Run it once on dev and set per-package thresholds (lines and branches) at the current numbers rounded down to the nearest 5, so CI fails if coverage drops.
  • Add a test:coverage script and use it in the CI test step instead of pnpm test.

Acceptance criteria

  • pnpm test:coverage prints a table per package and passes on dev
  • The thresholds you picked are in the PR description with the measured numbers
  • coverage/ stays ignored (it already is in .gitignore)
  • No changeset needed (tooling only)

Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.

主要语言
TypeScript
星标
13
派生
7
平均合并
4 小时 11 分钟
30 天内合并 PR
122

环境准备

从这里开始

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

codercops/chatcops 的其他 Issue

查看 codercops/chatcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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