microsoft / microsoft/vscode-java-test

Expose lists of tests to be usable in inputs of task.json

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

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

ai-triaged enhancement maven test-discovery
主要言語
TypeScript
スター
340
フォーク
173
平均マージ
1日 19時間
マージ済み PR(30日)
18

説明

I want to write a task like

"inputs": [
    {
      "id": "pickedTest",
      "type": "command",
      "command": "extension.yourextension.testPickerinCurrentFile",
    }
  ],

"tasks": [{
  "type": "shell",
  "command": "mvn -Dtest=${input:pickedTest} test -e",
  "label": "run test.."
}]

to be able to run any test(s) in current file or the entire workspace in my terminal instead of the debug console.

so if you exposed two commands

  • one for tests or test classes in current file
  • one for tests or test classes in entire workspace

with full classpath and/or methodname as output which can directly be fed to maven, I'd be grateful.

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

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

はじめの一歩

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

調査の方向性

task.json の入力例と、current-file および workspace に対して要求されているテストコマンドから始め、Maven が classpath、class、method-name の出力をどのように受け付けるかを確認します。完了とは、両方のコマンドが、task に置き換えてターミナルから実行できるテスト選択を公開することです。

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

評価

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

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

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