Abstract
This paper developed a Contracted Behavior Driven Development (CBDD) method that extends and combines the ideas behind Test/Behavior Driven Development (TDD/BDD) and Programming by Contract (PBC) to improve the overall stability and quality of a system. A tool is developed to derive unit tests automatically by analyzing human written specifications for preconditions and post-conditions when coupled with data definitions. These results will be used to generate code to be run by a unit testing framework before deployment, either as part of a continuous integration environment or by individual developers. The tool will also generate wireframe classes implementing pre and post-conditions within the code and using runtime contract analysis to generate information when an exception occurs, thereby helping to automate verification of bug fixes.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Janzen, D., Saidian, H.: A Leveled Examination of Test-Driven Development Acceptance. In: 29th International Conference on Software Engineering, pp. 1–4 (2007)
Janzen, D., Saiedian, H.: Does Test-Driven Development Really Improve Software Design Quality? IEEE Software, 77–84 (2008)
Kaufman, R., Janzen, D.: Implications of Test Driven Development: A pilot study. In: OOPSLA 2003 Companion of the 18th Annual ACM SIGPLAN Conference, pp. 298–299. ACM, New York (2003)
North, D.: (2006), http://dannorth.net/introducing-bdd/ , http://dannorth.net (retrieved)
Fowler, M.: Refactoring: Improving the design of existing code. Addison Wesley, New York (1999)
Beck, K.: Test Driven Development: By Example. Addison Wesley, Boston (2002)
Jansen, D.: Test-Driven Development concepts, Taxonomy and Future Direction. Computer, 43-50 (2005)
Meyer, B.: Object Oriented Software Construction, 2nd edn. Prentice Hall, Boston (2000)
Gries, D.: The Science of Programming. Springer (1981)
Lietner, A., Ciupa, I., Oriol, M., Meyer, B., Fivo, A.: Contract driven development = test driven development - writing test cases. In: ESEC-FSE 2007, pp. 425–434. ACM, New York (2007)
Microsoft Research (n.d.). Code Contracts. Retrieved from Microsoft Research: http://research.microsoft.com/en-us/projects/contracts/
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Schoeneman, L., Liu, J.B. (2013). Integrating Behavior Driven Development and Programming by Contract. In: Murgante, B., et al. Computational Science and Its Applications – ICCSA 2013. ICCSA 2013. Lecture Notes in Computer Science, vol 7975. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-39640-3_43
Download citation
DOI: https://doi.org/10.1007/978-3-642-39640-3_43
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-39639-7
Online ISBN: 978-3-642-39640-3
eBook Packages: Computer ScienceComputer Science (R0)