QA Data Generator makes test data for QA engineers and developers, and then breaks it on purpose.
You describe your tables in a short YAML recipe, say a thousand customers with up to five payments each, and get them as CSV, JSON or SQL. The values agree with each other: first names fit the gender column, the city, state and ZIP code belong together, and every card number, ISBN or VIN carries a correct check digit. Data like that gets past your validation instead of failing on the first screen.
Then it breaks the data, a dataset it made or a CSV file you already have, and writes a manifest beside it. For every value it changed, the manifest says what your application should do with it: reject the card number whose check digit is off by one, accept the customer called O'Brien. Your test reads the answer from that file instead of you writing it by hand. A desktop window and a command line, over one engine.
https://qadatagenerator.donislawdev.com/
Features
- Whole datasets from a recipe - describe your tables, how many rows each one has and how they relate, in one YAML file. A customer can have zero to five payments, every payment points at its customer, and one command writes all of them.
- Values that agree with each other - a first name fits the gender, a city, state and ZIP code belong together, and a Polish national ID number carries the same birth date and gender as the columns beside it.
- Identifiers that pass validation - card numbers, ISBN, EAN, IMEI, VIN, US social security and routing numbers, and national numbers for Poland, all with correct check digits. Card numbers are only the published test numbers.
- Damage on purpose, with the answer - a check digit off by one, two digits swapped, a value longer than its column allows, an empty required field, an emoji, an invisible zero-width space. Each damaged value goes into the manifest with what your application should do about it.
- Valid values your app may wrongly refuse - O'Brien, José, 美咲 and the surname Null are real names, and the manifest says they should be accepted. A false rejection turns away a real customer.
- Damage a file you already have - point qadg corrupt at a CSV file. It works out what each column holds by looking at the values, says why it decided so, and lists what it could not work out rather than guessing.
- Check what your app did - qadg verify compares the manifest with a record of what your application did with each row, lists every row where the two disagree, and ends with an exit code your pipeline can fail on.
- Same seed, same data - the same recipe and seed give the same rows and the same damage, byte for byte, on any machine. Commit a small recipe instead of large fixture files.
- Answers your tests can read - the manifest is JSON, and can also be written as a Gherkin Examples table, as CSV or as Markdown.
- One value in a second - qadg quick vin prints one valid VIN, and --count 1000 prints a thousand.
- Careful with your files - a run writes nothing until it has succeeded, an existing file stops it unless you add --overwrite, and the file you give qadg corrupt is never written over.
- Offline, free, no telemetry - GPL-3.0, no account, no network connection. The data you generate is yours.