Allow passing --changed cli option to vitest

オープン
#32,343 コメント 1 件 リアクション 9 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
cli, testing

調査の方向性

ユニットテストビルダーのオプションから始め、それらが Vitest runner にどのように渡されるかを追跡します。変更された string オプションが --changed を渡すこと、また関連するビルダーテストで結果として生成されるコマンドをカバーしていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

angular/build:unit-test area: @angular/build feature feature: votes required
Command

test

Description

The unit-test builder does not provide a way to use the --changed vitest option: https://vitest.dev/guide/cli.html#changed. This will analyze the import graph and only run tests affected by a change, which is useful for running a subset of the test suite for pull requests. This option is not available through the vitest configuration file.

Describe the solution you'd like

Add a changed: <string> option to the unit-test builder options which passes --changed <string> to the vitest runner.

Describe alternatives you've considered

I don't think there are any good workarounds. Using @analogjs/vitest-angular exposes vitest directly, but requires more setup and is not an "official" package.

主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
16時間 21分
マージ済み PR(30日)
170

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/angular-cli のほかの issue

angular/angular-cli の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。