Zobrazit minimální záznam

Refactoring of Unit tests on backend



dc.contributor.advisorSobotka Petr
dc.contributor.authorJakub Čapek
dc.date.accessioned2023-06-23T22:52:01Z
dc.date.available2023-06-23T22:52:01Z
dc.date.issued2023-06-23
dc.identifierKOS-1180078422305
dc.identifier.urihttp://hdl.handle.net/10467/110106
dc.description.abstractTato práce se zabývá řešením nedostatků, které se vyskytují v Unit testech Java aplikace. Nedostatky, které jsou probírané do hloubky, jsou globálně využívané třídní proměnné testových tříd, neefektivní inicializace testů, nepřehledné nastavování testových objektů, nesprávné členění testů, nedodržování jednotné jmenné konvence a duplikování kódu v testech. Pro všechny tyto nedostatky je v práci navržen doporučený postup, který je vždy předveden v ukázce. Práce se dále zabývá dalšími běžnými chybami při testování, jako jsou například používání data, potřeba testování privátních metod a mockování statických tříd. Veškeré navržené postupy jsou použity na reálném projektu s pozitivními výsledky. Refactoring dle těchto postupů vedl ke zlepšení přehlednosti a efektivity testů.cze
dc.description.abstractThis thesis focuses on creating solutions to found problems in Unit tests of existing Java application. Problems which are discussed are global usage of test class variables, inefficient test initialization, not transparent setting of test objects, incorrect division of tests, non-compliance with the uniform naming convention and code duplication in tests. There is created recommended solution for each problem. Every solution is shown in example. The thesis also deals with other common mistakes in testing, such as using dates, need to test private methods, and mocking static classes. All proposed solutions are used on a real project with positive results. Refactoring according to these solutions led to an improvement in the clarity and effectiveness of the tests.eng
dc.publisherČeské vysoké učení technické v Praze. Vypočetní a informační centrum.cze
dc.publisherCzech Technical University in Prague. Computing and Information Centre.eng
dc.rightsA university thesis is a work protected by the Copyright Act. Extracts, copies and transcripts of the thesis are allowed for personal use only and at one?s own expense. The use of thesis should be in compliance with the Copyright Act http://www.mkcr.cz/assets/autorske-pravo/01-3982006.pdf and the citation ethics http://knihovny.cvut.cz/vychova/vskp.htmleng
dc.rightsVysokoškolská závěrečná práce je dílo chráněné autorským zákonem. Je možné pořizovat z něj na své náklady a pro svoji osobní potřebu výpisy, opisy a rozmnoženiny. Jeho využití musí být v souladu s autorským zákonem http://www.mkcr.cz/assets/autorske-pravo/01-3982006.pdf a citační etikou http://knihovny.cvut.cz/vychova/vskp.htmlcze
dc.subjectUnit testycze
dc.subjectrefactoring testůcze
dc.subjecttestování softwarucze
dc.subjectJavacze
dc.subjectJUnitcze
dc.subjectMockitocze
dc.subjectUnit testseng
dc.subjecttest refactoringeng
dc.subjectsoftware testingeng
dc.subjectJavaeng
dc.subjectJUniteng
dc.subjectMockitoeng
dc.titleRefactoring Unit testů na backenducze
dc.titleRefactoring of Unit tests on backendeng
dc.typebakalářská prácecze
dc.typebachelor thesiseng
dc.contributor.refereeMlejnek Jiří
theses.degree.disciplineWebové a softwarové inženýrstvícze
theses.degree.grantorkatedra softwarového inženýrstvícze
theses.degree.programmeInformatika 2009cze


Soubory tohoto záznamu




Tento záznam se objevuje v následujících kolekcích

Zobrazit minimální záznam