Elias Nogueira: Datafaker: The Most Powerful Fake Data Generator Library
summary
Library claims to be the go‑to JVM fake data generator, producing realistic, GDPR‑safe test data for Java and Kotlin with 2,000+ providers and locale support (pt_BR, ar, zh) and can produce IBANs, credit cards, images, birthdays and localized addresses. It converts schemas to files using CSV/JSON/SQL transformers and writes SQL INSERT batches for DB seeding; custom generators come from YAML provider files plus a provider class and a small custom Faker wrapper. It supports seeded reproducibility, works for factories/builders, and warns that pure randomness can make edge‑case assertions flaky unless constrained.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:54Test data generation problems
- 5:30Why Datafaker is best
- 9:51Basic Datafaker usage
- 18:02Generating files with schemas
- 24:46Real-world factories and models
- 34:56Extending Datafaker
- 43:18Summary
- 44:21Q&A
related talks
24mModernising J-Unit with Test Data Generators
47mManaging Testing Data
49mManaging Testing Data
47mEfficiency up, failed releases down; compliant production data for your test and dev environments
11mKickstart your Kafka with Faker Data
41mA Cookbook for Testing Data
27mHow To Generate Test Data for Your Database Project
43mTesting: Property-based testing - let your testing library work(...)
