`vp run --log labeled` / `--log grouped` drops color from the Vitest coverage table
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 65/100
Piste de recherche
Start with the vp run output handling for the labeled and grouped log modes, then reproduce using the linked repository and compare with interleaved. Check how those modes relay task output and preserve color settings; done when the Vitest coverage table retains its threshold colors in all modes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When a task runs through vp run with --log labeled or --log grouped, the coverage table from @vitest/coverage-v8 (text reporter) is printed without color. The same task under the default interleaved mode, or with no --log, shows the table in color: red/yellow/green by coverage threshold.
Only the coverage table is affected. The rest of Vitest's output keeps its color in every mode: the RUN badge, 1 passed, the checkmarks, and the % Coverage report from v8 header.
The same split shows up when you run vp test with stdout piped and FORCE_COLOR set. Vitest's own output is colored and the coverage table is not. This suggests labeled and grouped relay the task's output through a pipe instead of a TTY, and the coverage reporter decides whether to color by checking for a TTY, not by honoring FORCE_COLOR.
Reproduction
https://github.com/rhermes62/no-test-coverage-output-coloring-reproduction
Steps to reproduce
- Clone the reproduction repo and install:
(git clone https://github.com/rhermes62/no-test-coverage-output-coloring-reproduction.git cd no-test-coverage-output-coloring-reproduction npm install --legacy-peer-deps--legacy-peer-depsworks around an unrelated npm 10.9.4 crash,Cannot read properties of null (reading 'edgesOut').) - In a real terminal (don't pipe the output), run:
node --run works:log-interleaved # vp run --log interleaved test node --run broken:log-labeled # vp run --log labeled test node --run broken:log-grouped # vp run --log grouped test - Compare the coverage tables.
Expected: The table is colored the same way in every mode: add.ts (100%) green, divide.ts (0%) red, % Funcs 50 yellow.
Actual: The table is colored under interleaved and with no --log, and plain under labeled and grouped. Coverage numbers are identical in all modes.
| Mode | Screenshot |
|---|---|
no --log (works) |
|
--log interleaved (works) |
|
--log labeled (broken) |
|
--log grouped (broken) |
System Info
`vp env current`: N/A (project install)
`vp --version`:
VITE+ - The Unified Toolchain for the Web
vp v1.0.0
Local vite-plus:
vite-plus v1.0.0
Tools:
vite v8.3.1
rolldown v1.2.11
vitest v5.0.1
oxfmt v0.70.0
oxlint v1.85.0
oxlint-tsgolint v7.0.2003
tsdown v0.23.0
Used Package Manager
npm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- Langage dominant
- Rust
- Étoiles
- 6.5k
- Forks
- 297
- Merge moyen
- 1 j 59 min
- PR mergées (30 j)
- 235
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de voidzero-dev/vite-plus
-
pending triage
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
voidzero-dev/vite-plus#3235 ·
Les mainteneurs répondent en général sous 1 jour
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterPeut-être pris @kshanxs l’a pris il y a 6 jours. Ouvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
voidzero-dev/vite-plus#3219 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
pending triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
voidzero-dev/vite-plus#2882 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
vpx: support ECMAScript decorators after upstream Oxc support landsPeut-être pris @fengmk2 l’a pris il y a 1 jour. Ouverte
voidzero-dev/vite-plus#3292 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Executables throwingPeut-être pris @voidzero-bot l’a pris il y a 1 jour. Ouverte- P2: has workaround pending triage triage: fix verified
Difficulté 4/5 3-5 jours Accessibilité débutants 20/100
voidzero-dev/vite-plus#3290 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de voidzero-dev/vite-plus
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
yunfie-twitter/Palleria#474 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
servo/rust-smallvec#827 ·
Les mainteneurs répondent en général sous 1 jour