Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add test coverage reporting with a minimum per package

Đã đóng
#177 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd, testing, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
13
Fork
7
Merge trung bình
4 giờ 11 phút
Pull request đã merge (30 ngày)
122

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codercops/chatcops

Tất cả issue của codercops/chatcops

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.