Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add test coverage reporting with a minimum per package

クローズ
#177 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
122

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codercops/chatcops のほかの issue

codercops/chatcops の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。