Skip to main content

Integrating Behavior Driven Development and Programming by Contract

  • Conference paper
Computational Science and Its Applications – ICCSA 2013 (ICCSA 2013)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7975))

Included in the following conference series:

  • 1793 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Janzen, D., Saidian, H.: A Leveled Examination of Test-Driven Development Acceptance. In: 29th International Conference on Software Engineering, pp. 1–4 (2007)

    Google Scholar 

  2. Janzen, D., Saiedian, H.: Does Test-Driven Development Really Improve Software Design Quality? IEEE Software, 77–84 (2008)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. North, D.: (2006), http://dannorth.net/introducing-bdd/ , http://dannorth.net (retrieved)

  5. Fowler, M.: Refactoring: Improving the design of existing code. Addison Wesley, New York (1999)

    Google Scholar 

  6. Beck, K.: Test Driven Development: By Example. Addison Wesley, Boston (2002)

    Google Scholar 

  7. Jansen, D.: Test-Driven Development concepts, Taxonomy and Future Direction. Computer, 43-50 (2005)

    Google Scholar 

  8. Meyer, B.: Object Oriented Software Construction, 2nd edn. Prentice Hall, Boston (2000)

    Google Scholar 

  9. Gries, D.: The Science of Programming. Springer (1981)

    Google Scholar 

  10. 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)

    Chapter  Google Scholar 

  11. Microsoft Research (n.d.). Code Contracts. Retrieved from Microsoft Research: http://research.microsoft.com/en-us/projects/contracts/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics