Abstract
TDD is a technique traditionally applied in applications with deterministic algorithms, when you have a known input and an expected result. Therefore, the challenge is to implement this technique in applications with non-deterministic algorithms, specifically when several random choices need to be made during its execution. The purpose of this paper is to present the ReTest framework, a JUnit extension, that allows an extension of the TDD technique, to enable its use for the development of non-deterministic algorithms.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Guerra, E., Aniche, M.: Achieving quality on software design through test-driven development. In: Mistrik, I., Soley, R., Ali, N., Grundy, J., Tekinerdogan, B. (eds.) Software Quality Assurance, pp. 201–220. Elsevier Inc., Amsterdam (2016)
Beck, K.: Test-Driven Development by Example. Addison-Wesley, Boston (2002)
Astels, D.: Test-Driven Development: A Practical Guide. Prentice Hall, Englewood Cliffs (2003)
Floyd, R.W.: Nondeterministic algorithms. J. ACM 14, 636–644 (1967)
Mackinnon, T., Craig, P., Freeman, S.: Endotesting: unit testing with mock objects. In: Succi, G., Marchesi, M. (eds.) Extreme Programming Examined, pp. 287–301. Addison-Wesley Longman Publishing Co., Redwood City (2001)
Freeman, S., Mackinnon, T., Pryce, N., Walnes, J.: Mock roles, objects. In: Companion to the 19th Annual ACM SIGPLAN Conference on Object-oriented Programming Systems, pp. 236–246. ACM (2004)
Beck, K.: Extreme Programming Explained. Addison-Wesley Professional, Boston (2004)
Martin, R.: Agile Software Development, Principles, Patterns, and Practices. Prentice Hall, Englewood Cliffs (2002)
Freeman, S., Pryce, N.: Growing Object-Oriented Software, Guided by Tests. Addison-Wesley Professional, Boston (2009)
Beck, K., Gamma, E.: JUnit test infected: programmers love writing tests. In: Dwight Deugo, pp. 357–376. More Java Gems (2000)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Ivo, A.A.S., Guerra, E.M. (2017). ReTest: Framework for Applying TDD in the Development of Non-deterministic Algorithms. In: Silva da Silva, T., Estácio, B., Kroll, J., Mantovani Fontana, R. (eds) Agile Methods. WBMA 2016. Communications in Computer and Information Science, vol 680. Springer, Cham. https://doi.org/10.1007/978-3-319-55907-0_7
Download citation
DOI: https://doi.org/10.1007/978-3-319-55907-0_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-55906-3
Online ISBN: 978-3-319-55907-0
eBook Packages: Computer ScienceComputer Science (R0)