Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Aggregation of Runtimes for a Testclass

Aperta
#1,591 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia tracciando il modo in cui il pannello dei test aggrega i tempi di esecuzione dei singoli test nel totale della classe di test, quindi segui la gestione delle fixture statiche di setup @BeforeAll. Riproduci la discrepanza con una fixture che richieda più tempo dei suoi test e considera il lavoro necessario affinché il totale della classe includa la durata del setup e un test di regressione la copra.

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

Descrizione

ai-triaged bug enhancement junit test-reporting

Version

0.39.0

Description

When a test class runs independent tests, the testing panel on the left displays the execution times for each test as well as an aggregated sum for the complete test class, which is fine.

When the test class includes a static setup method to create a class fixture, tagged with Unit5's @BeforeAll , the execution for setting up the fixture is not taken into account for the whole class, which still only sums up the execution times for each individual tests. This may lead to some unexpected results, where the test panel displays a test class execution time sum < 1s, whereas the creation of the fixtures already requires > 10s.

Lingua principale
TypeScript
Stelle
340
Fork
173
Merge medio
1g 4h
PR unite (30g)
15

Preparare l'ambiente

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.

Altre issue di microsoft/vscode-java-test

Tutte le issue di microsoft/vscode-java-test

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.