Re:Show HN: Auto-generate load tests/synthetic test data fro...
by xwowsersx on Thursday January 18, 2024 @05:03PM
(#39048474)
This can be used to generate data given an openAPI spec? Bit unclear on whether that's unbundled from test generation. Say I just want to generate data that conforms to a spec as one-off. Can this be done?
[ Parent
| on HN ]
Re:Show HN: Auto-generate load tests/synthetic test data fro...
by yevyevyev on Thursday January 18, 2024 @06:21PM
(#39049369)
That’s a great question. The TestGen feature generates JavaScript that uses faker-js functions to generate the test data, and axios to make http requests. You can copy and paste the JS output of TestGen and run it anywhere.
Re:Show HN: Auto-generate load tests/synthetic test data fro...
by edrenova on Thursday January 18, 2024 @06:40PM
(#39049570)
just to jump in here - you can do this with Neosync, an OSS synthetic data generator and orchestrator for any schema and includes relational integrity, anonymization, + more
(I'm one of the co-founders)
If you're interested (github.com/nucleuscloud/neosync)
Re:Show HN: Auto-generate load tests/synthetic test data fro...
by xwowsersx on Thursday January 18, 2024 @08:10PM
(#39050376)
Thanks! neosync allows you to do this based on an OpenAPI spec? I didn't readily see that in the README. Perhaps I missed it.
Re:Show HN: Auto-generate load tests/synthetic test data fro...
by edrenova on Thursday January 18, 2024 @08:35PM
(#39050569)
Right now its just based on a db schema (you connect your DB and we automatically read the schema) and we're adding support for a csv file schema in the next week or so. Our input system is pretty flexible, so it's not too hard to build support for an openAI spec. Happy to chat more if you'd like, my email is [email protected].