Fairies, Fakers and Factories: boost you tests with better test data

Tools in Action
Development Practices

Whether you write your tests up front or after the fact, you've probably found yourself in this situation: You know exactly what you want to test and how you're going to approach it, but you suffer from a massive lack of inspiration when you try to define your test data. Eventually you end up with "Test User", "Jane Doe" and "Product123". This is both frustrating and ineffective. Coming up with good test data over and over again can be mind numbing and the result is mostly not representative for the data that will actually flow through your system.

So how can you improve this? Is there a way you can easily generate good test data and at the same time reduce the burden of creating test data over and over again? Yes you can! In this session I will show you how you can use test data generators like Java Faker and jFairy to create test data factories that help you improve the quality of your test data. I will show how this can massively improve your productivity when writing tests, because it helps you to focus on what really maters: the tests themselves.

Scheduled on Tuesday from 13:50 to 14:20 in Exec Room

Testing Support Lib
Unit Testing
Integration Test

Jaap Coomans


Jaap is a Java and Kotlin developer with 15 years of experience in Java development in various industries. He's passionate about the JVM ecosystem and Open Source technology and likes to combine architecture and design with hands-on development. Outside IT he loves playing board-games and drinking craft beer with friends and colleagues.