Support for tag filtering

オープン
#233 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
scala
領域
cli, testing-qa

調査の方向性

testOnly CLIエントリーポイントから始め、既存の組み込みタグである ignore と only がどのように解析され、適用されるかを追跡します。例から、AND、OR、NOT、グループ化、ワイルドカードでサポートされる動作を定義し、そのうえで testOnly * -- -t foo のようなコマンドが期待されるタグ付きテストを選択することを確認します。

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

説明

Currently looks like that there is only support for built-in tags (ignore and only) but despite you can tag any test with tagged that has not use.

I was wondering if there is appetite to support filtering based on the test tags, that will allow to write something like this using a syntax similar to Github search where the (space) is the AND, the , is the OR and ! for NOT:

testOnly * -- -t foo // Run all the tests tagged with foo
testOnly * -- -t !foo // Run all the tests not tagged with foo
testOnly * -- -t foo,bar // Run all the tests tagged with foo or bar
testOnly * -- -t foo,!bar // Run all the tests tagged with foo or not tagged with bar
testOnly * -- -t (foo,bar) baz // Run all the tests tagged with foo or bar and the tests tagged with baz

Additionally, it would be useful to support wildcards for pattern matching:

testOnly * -- -t bug-* // Run all tests tagged with bug-123, bug-critical, etc.
testOnly * -- -t *:prod // Run all tests tagged with env:prod, db:prod, etc.
testOnly * -- -t test-? // Run all tests tagged with test-1, test-a, etc. (single character)

This would be really useful to my use case and I am happy to contribute if possible.

主要言語
Scala
スター
87
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

typelevel/weaver-test のほかの issue

typelevel/weaver-test の issue をすべて見る

似ている issue

Scala の issue をもっと見る

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

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