Szczegóły publikacji
Opis bibliograficzny
Generating source code templates on the basis of unit tests / Mariusz Nyznar, Dariusz PAŁKA // W: Information Systems Architecture and Technology: proceedings of 37th international conference on Information Systems Architecture and Technology – ISAT 2016 : [September 18–20, 2016, Karpacz, Poland], Pt. 2 / eds. Adam Grzech [et al.]. — [Switzerland] : Springer International Publishing AG, cop. 2017. — (Advances in Intelligent Systems and Computing ; ISSN 2194-5357 ; vol. 522). — ISBN: 978-3-319-46585-2; e-ISBN: 978-3-319-46586-9. — S. 213–223. — Bibliogr. s. 223, Abstr. — Publikacja dostępna online od: 2016-09-24. — Toż na CD
Autorzy (2)
Słowa kluczowe
Dane bibliometryczne
| ID BaDAP | 105048 |
|---|---|
| Data dodania do BaDAP | 2017-05-19 |
| Tekst źródłowy | URL |
| DOI | 10.1007/978-3-319-46586-9_17 |
| Rok publikacji | 2017 |
| Typ publikacji | materiały konferencyjne (aut.) |
| Otwarty dostęp | |
| Wydawca | Springer |
| Konferencja | International Conference on Information Systems Architecture and Technology 2016 |
| Czasopismo/seria | Advances in Intelligent Systems and Computing |
Abstract
This paper describes the solution for supporting Test-driven development (TDD) methodology with the help of code analysis and generation. By automation of the creation of stub implementation, it helps to accelerate the process of passing a red phase of Red/Green/Refactor (RDR) cycle. The tool described in the paper performs a semantic analysis of the test methods defined in a subjected Java class. It uses the information gathered during a process for further generation of unit stubs. The proposed solution describes the way in which the Abstract Syntax Tree (AST) is analyzed by the statements tree decomposition. The paper also presents possible ways of preventing and resolving unit types conflicts. The tool used for stub generation of units was defined in one of the test methods implemented in a Log4J Java framework. The results obtained are compared to a real class definition, and possible ways for further extensions of the solution are suggested.