intersystems / intersystems/git-source-control
Clean up testing artifact created by UnitTest.SourceControl.Git.NameToInternalNameTest
- Lingua principale
- ObjectScript
- Stelle
- 22
- Fork
- 14
- Merge medio
- 1g 9h
- PR unite (30g)
- 5
Descrizione
The unit test class UnitTest.SourceControl.Git.NameToInternalNameTest uses OnBeforeAllTests to copy the entire project tree into a temporary folder:
https://github.com/intersystems/git-source-control/blob/8aa09fdcc0b4fa8d384d8b8cb16dd6d2e8ae26eb/test/UnitTest/SourceControl/Git/NameToInternalNameTest.cls#L119-L123
But the cleanup (done for unknown reasons in %OnClose rather than OnAfterAllTests) doesn't remove that folder afterwards:
https://github.com/intersystems/git-source-control/blob/8aa09fdcc0b4fa8d384d8b8cb16dd6d2e8ae26eb/test/UnitTest/SourceControl/Git/NameToInternalNameTest.cls#L139-L148
A search for `##class(%Library.File).TempFilename()` shows other unit test classes that are similarly lazy in their housekeeping.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da test/UnitTest/SourceControl/Git/NameToInternalNameTest.cls, in particolare da OnBeforeAllTests e %OnClose, quindi cerca ##class(%Library.File).TempFilename() nelle altre classi di unit test. Il lavoro è completo quando la cartella temporanea dell’albero del progetto viene rimossa dopo i test e vengono gestiti anche gli artefatti di test analogamente non ripuliti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100