Work

Test Driven Developement for Eclipse CDT

Year: 2011
Type: dissertation
Abstract: Introduction: In 2006, Prof. Peter Sommerlad introduced the CUTE unit testing \nframework for C + + to promote unit testing in C + +. The objective of this \nbachelor thesis is to ease practicing Test-Driven Development (TDD) by code \ngeneration for Eclipse CDT when using CUTE. Referring to an undefined entity \nwhen writing code results in a syntax error. Based on such an error, a \nresolution should be provided that generates the missing code defining the \nentity. Code generation features three central advantages: \n- It speeds up the TDD work flow, \n- allows focus on the actual program logic and, \n- is useful for C++ programmers using CDT even when not practicing TDD. \n \nApproach: To provide an easy to use interface for generating missing code, \nEclipse's Quick- Fixes were used. They offer context- sensitive tasks for the \nactive source code position. Quick- Fixes can only exist in symbiosis with a \nproblem marker generated by a code checker. Our Quick- Fixes were \nimplemented bottom- up, being able to solve simple syntactic problems first, \nsuch as defining a missing local variable. Then, more special cases were \nadded and a generic solution was searched. \n \nResult: The developed Quick-Fixes provide a solid base for TDD in C++. The \nfollowing functionality has been implemented: \n- Create new types and namespaces from their use \n- Add member variables and (member) functions, especially operator \nfunctions \n- Create local variables (improved version) \n- Move functions and types to a new compilation unit \n- Append and remove arguments to match specific overloads of functions \n- Change visibility of members inside a class according to their use
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W1479910705
Cites: 4
Cited by:
Related to: 10