Tunit - unit testing for template-based code generators
Autor(en):
Zusammenfassung
Template-based code generator development as part of model-driven development (MDD) demands for strong mechanisms and tools that support developers to improve robustness, i.e., the desired code is generated for the specified inputs. Although different testing methods have been proposed, a method for testing only parts of template-based code generators that can be employed in the early stage of development is lacking. Thus, in this paper we present an approach and an implementation based on JUnit to test template-based code generators. Rather than testing a complete code generator, it facilitates partial testing by supporting the execution of templates with a mocked environment. This eases testing of code generators in early stages of development as well as testing new or changed parts of a code generator. To test the source code generated by the templates under test, different methods are presented including string comparisons, API-based assertions, and abstract syntax tree based assertions.
- Vollständige Referenz
- BibTeX
Kolassa, C., Look, M., Müller, K., Roth, A., Reiß, D. & Rumpe, B.,
(2016).
Tunit - unit testing for template-based code generators.
In:
Oberweis, A. & Reussner, R.
(Hrsg.),
Modellierung 2016.
Bonn:
Gesellschaft für Informatik e.V..
(S. 221-236).
@inproceedings{mci/Kolassa2016,
author = {Kolassa, Carsten AND Look, Markus AND Müller, Klaus AND Roth, Alexander AND Reiß, Dirk AND Rumpe, Bernhard},
title = {Tunit - unit testing for template-based code generators},
booktitle = {Modellierung 2016},
year = {2016},
editor = {Oberweis, Andreas AND Reussner, Ralf} ,
pages = { 221-236 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
author = {Kolassa, Carsten AND Look, Markus AND Müller, Klaus AND Roth, Alexander AND Reiß, Dirk AND Rumpe, Bernhard},
title = {Tunit - unit testing for template-based code generators},
booktitle = {Modellierung 2016},
year = {2016},
editor = {Oberweis, Andreas AND Reussner, Ralf} ,
pages = { 221-236 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
Haben Sie fehlerhafte Angaben entdeckt? Sagen Sie uns Bescheid: Feedback abschicken
Mehr Information
ISBN: 978-3-88579-648-0
ISSN: 1617-5468
Datum: 2016
Sprache:
(en)
(en)
Typ: Text/Conference Paper

