microsoft / microsoft/vscode-java-test
Aggregation of Runtimes for a Testclass
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 340
- Fork
- 173
- Merge medio
- 1g 19h
- PR unite (30g)
- 18
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
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.
Valutazione
- Stack tecnologico
- java, typescript
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100