© Shekhar Gulati, Rahul Sharma 2017

Shekhar Gulati and Rahul Sharma, Java Unit Testing with JUnit 5, https://doi.org/10.1007/978-1-4842-3015-2_8

8. Dynamic Tests and Migration from JUnit 4

Shekhar Gulati and Rahul Sharma2

(1)Gurgaon, Haryana, India

(2)Delhi, Delhi, India

In the book, so far, we have learned about different features of JUnit 5 by building tests for our bookstoread application. All tests that we have added thus far have been static in nature. JUnit 5 offers us a new paradigm of runtime test creation. In this chapter, we will look at dynamic test generation.

We have addressed all the features of JUnit 5. We can now say that JUnit 5 is going to be the de facto standard for unit testing in the future. Various tools and platform are in ...

Get Java Unit Testing with JUnit 5: Test Driven Development with JUnit 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.