Add test coverage reporting with a minimum per package
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
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
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13
- Forks
- 7
- Ø Merge
- 4 Std. 11 Min.
- Gemergte PRs (30 T.)
- 122
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/chatcops
-
enhancement hacktoberfest help wanted server
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Document the pre-chat formEvtl. vergeben @masyarakatai hat das vor 4 Tagen übernommen. Offendocumentation good first issue hacktoberfest widget
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
codercops/chatcops#70 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement hacktoberfest help wanted server
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
Maintainer antworten meist innerhalb von 1 Tag
-
Create @chatcops/store-redis for Upstash and other Redis clientsEvtl. vergeben @bhushan4work hat das vor 1 Tag übernommen. Offenenhancement hacktoberfest help wanted server
codercops/chatcops#248 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement hacktoberfest help wanted server
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/chatcops
Ähnliche Issues
-
frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ranxianglei/billion-context#4172 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
awslabs/threat-composer#362 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Area/Cloud Needs Triage Type/Bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
wso2/product-integrator#2847 ·
Maintainer antworten meist innerhalb von 1 Tag