Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

`vp run --log labeled` / `--log grouped` drops color from the Vitest coverage table

Ouverte
#2,911 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

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
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
node.js, rust
Domaine
cli, tooling

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

pending triage
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
  1. 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-deps works around an unrelated npm 10.9.4 crash, Cannot read properties of null (reading 'edgesOut').)
  2. 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
    
  3. 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) Image
--log interleaved (works) Image
--log labeled (broken) Image
--log grouped (broken) Image
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
Langage dominant
Rust
Étoiles
6.5k
Forks
297
Merge moyen
1 j 59 min
PR mergées (30 j)
235

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de voidzero-dev/vite-plus

Toutes les issues de voidzero-dev/vite-plus

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.