Overview
Discover how to enhance your testing process with better test data in this 26-minute Devoxx conference talk. Learn techniques to generate representative and randomized test data using tools like Java Faker and jFairy. Explore the benefits of creating test data factories to improve productivity and focus on writing meaningful tests. Gain insights into handling different data formats, preventing collisions, and addressing security and privacy concerns. Follow along as the speaker demonstrates practical examples using EasyRandom, DataFaker, and JayFerry, comparing their features and use cases. Understand how to implement these concepts in real-world scenarios, such as building a webshop for board games. By the end of this talk, you'll be equipped with strategies to overcome "desert blindness" in test data creation and streamline your testing workflow.
Syllabus
Intro
A new day
Create a unit test
Meet Jaap
Unit test
Representative test data
Randomize data
What is randomized data
Desert blindness
Different test data
Security and privacy
Data formats
Prevent collisions
Randomize test data
Automation
EasyRandom
EasyRandom example
DataFaker
JayFerry
Code
Comparison
Fakers
Test Data Factories
Make you more productive
A webshop for board games
Builder or dedicated builder
Conclusion
Taught by
Devoxx