microsoft / microsoft/vscode-java-test

Results not reported for JUnit 5 suites

Aperta
#1,729 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

ai-triaged bug enhancement junit test-discovery
Lingua principale
TypeScript
Stelle
340
Fork
173
Merge medio
1g 19h
PR unite (30g)
18

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Estrai 1729-project.zip e confronta TestSuiteForJUnit4.java con TestSuiteForJUnit5.java, iniziando da come viene rappresentata ogni esecuzione nel riquadro „Test Results“. Traccia il percorso della segnalazione dei risultati dei test per entrambe le suite e verifica il comportamento ripetendo i passaggi di VS Code elencati. Il lavoro è completato quando il metodo di test della suite JUnit 5 viene segnalato come quello della suite JUnit 4.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
devtools, testing-qa
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.