microsoft / microsoft/vscode-java-test

Can run test from a .class file

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

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

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

説明

Hi,

I have a tests.jar package that has the tests included, I did not write the tests, instead the've been downloaded by maven, the pom.xml has them as dependency. I've downloaded the sources as well, however Code Lens does not provide the Run Test| Debug Test above each test case, or the test class.

Here's the video, I have a TestSuite.java that is in the tests folder and it shows the Run Test | Debug Test, but when I navigate to the Broker.class test that is part of the tests.jar, the Code Lens does not show the individual Run Test | Debug Test above each test, like shown here.
https://code.visualstudio.com/docs/java/java-testing#_rundebug-test-cases

video if it in action:

https://user-images.githubusercontent.com/60336163/117559253-8f135c80-b038-11eb-8a51-e1720ba4b9c1.mov

Running vsCode 1.56 w/ all extensions latest version.

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

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

はじめの一歩

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

調査の方向性

まず tests.jar を提供する pom.xml の依存関係から始め、次に Broker.class へ移動する際に欠落している Code Lens の動作を再現し、tests フォルダー内の TestSuite.java と比較します。完了条件は、ダウンロードした依存関係に含まれる個々のテストケースとテストクラスに、Java testing documentation で説明されているとおり Run Test と Debug Test のアクションが表示されることです。

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

評価

技術スタック
java, vscode
領域
developer-experience, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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