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. © Springer International Publishing AG 2017.