Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add test coverage reporting with a minimum per package

Geschlossen
#177 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
70/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, typescript
Bereich
ci-cd, testing, tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
13
Forks
7
Ø Merge
4 Std. 11 Min.
Gemergte PRs (30 T.)
122

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codercops/chatcops

Alle Issues in codercops/chatcops

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.