`vp run --log labeled` / `--log grouped` drops color from the Vitest coverage table
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 6.5k
- フォーク
- 296
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 232
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and later対応中かも @kshanxs が 1 日前に担当しました。 オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
voidzero-dev/vite-plus#3219 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
voidzero-dev/vite-plus#2882 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
vp run -r executes each package task twice when the root package has a matching recursive script対応中かも @wan9chi が 1 日前に担当しました。 オープンpending triage
voidzero-dev/vite-plus#3221 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
pending triage
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
voidzero-dev/vite-plus#3218 ·
メンテナーはふだん 1 日以内に返信
-
LSP loads vite.config.ts with the server's cwd as root対応中かも @leaysgur が 2 日前に担当しました。 オープンpending triage
voidzero-dev/vite-plus#3217 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
api bug entity mobai
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Pumpkin-MC/Pumpkin#4312 ·
メンテナーはふだん 1 日以内に返信
-
bug easy good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
lacs-project/sysknife#659 ·
メンテナーはふだん 2 日以内に返信
-
E_FIT_INPUT_MISSING (mixture overrides): the message says ferx-r bundles lack mixture_overridesオープンP3
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
registrystack/registry-stack#2431 ·
メンテナーはふだん 1 日以内に返信