Are you also often uninspired when you need to think of useful test data for your unit tests? Is ‘John Doe’ your best test friend? Do not worry, Java Faker comes to the rescue! In this blog, you will learn how to generate your test data.
1. Introduction
Making up test data is one of the hardest tasks when writing tests. Often you will see 123
when numbers are being used, or John Doe
when a name is needed. But this also means that the test will always run with the same data. This is on the one hand a good thing because your tests needs to be stable, but on the other hand a pitty because you also want to find errors. And this is more likely when random test data is being used.
from DZone.com Feed https://ift.tt/IJZ6PjO
No comments:
Post a Comment