Add test coverage reporting with a minimum per package
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 70/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, typescript
调研方向
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 内容生成。
描述
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/serverandpackages/widget, coveringsrc/**only, with thetextandlcovreporters. - Run it once on
devand 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:coveragescript and use it in the CI test step instead ofpnpm test.
Acceptance criteria
-
pnpm test:coverageprints a table per package and passes ondev - 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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codercops/chatcops 的其他 Issue
-
enhancement hacktoberfest help wanted server
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Document the pre-chat form可能已有人在做 @masyarakatai 于 5 天前认领。 未关闭documentation good first issue hacktoberfest widget
难度 2/5 1-3 小时 新手友好度 88/100
codercops/chatcops#70 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement hacktoberfest help wanted server
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
Create @chatcops/store-redis for Upstash and other Redis clients可能已有人在做 @bhushan4work 于 1 天前认领。 未关闭enhancement hacktoberfest help wanted server
codercops/chatcops#248 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Create @chatcops/store-sqlite, a store for single-server setups可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement hacktoberfest help wanted server
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
查看 codercops/chatcops 的全部 Issue
相似的 Issue
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 68/100
xavxyz/bei-shan-lin-shui#57 ·
维护者通常 1 天内回复
-
[BUG] rag: sentence content can cross the reported sentence boundaries可能已有人在做 @LJK-ikun 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URI未关闭
难度 1/5 1 小时以内 新手友好度 88/100
platformatic/mcp#361 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
siyuan-note/siyuan#20799 · 7 条评论 ·
维护者通常 1 天内回复