microsoft / microsoft/vscode-java-test

Results not reported for JUnit 5 suites

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

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

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

説明

Versions:

VSCode 1.92.2
Test Runner for Java 0.42.0

What happens:

When running a suite written with the JUnit 5 Jupiter API, the results of the test are not reported in the Test Results pane.

What was expected:

Test results from the suite should be reported in the same way as they are with suites written to the JUnit 4 API.

Steps to reproduce:
  1. Unzip the attached project.zip
  2. Launch Visual Studio Code for the project:
    code project.code-workspace &
  3. Browse to the class TestSuiteForJUnit4.java
  4. Click on the Play button to the left of the class declaration
  5. Observe that the test method is reported in the Test Results pane
  6. Browse to the class TestSuiteForJUnit5.java
  7. Click on the Play button to the left of the class declaration
  8. Observe that the test runs, but is not reported in the Test Results pane
Minimal example:

1729-project.zip

Screenshot:

1729-TestResultPane

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

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

はじめの一歩

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

調査の方向性

1729-project.zip を展開し、TestSuiteForJUnit4.java と TestSuiteForJUnit5.java を比較します。まず、各実行が Test Results ペインでどのように表現されるかを確認します。両方の suite についてテスト結果の報告経路を追跡し、記載されている VS Code の手順を繰り返して動作を検証します。JUnit 5 suite のテストメソッドが JUnit 4 suite と同じように報告されれば完了です。

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

評価

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

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

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