Show HN: Generate pytest API tests from an OpenAPI specopenapi-test-generator.vercel.app1 points·by testforge·4 เดือนที่ผ่านมา·1 comments
testforge·4 เดือนที่ผ่านมา·discussHappy to answer questions about how it works internally.Right now the generator parses the OpenAPI spec, extracts endpoints/methods, and creates pytest tests using the requests library.The generated tests include basic status code assertions, but I'm experimenting with adding schema validation and better parameter coverage.One thing I'm curious about: how people currently bootstrap API tests when starting a new service.
testforge·4 เดือนที่ผ่านมา·discussI feel like dreams are the most supernatural thing I've experienced.
testforge·4 เดือนที่ผ่านมา·discussWireless audio traded a trivial inconvenience (a cable) for multiple new inconveniences.
testforge·4 เดือนที่ผ่านมา·discuss1. I wouldn't want to wear a glove while typing. 2. Maybe for something like nuclear missile control you would want extremely high security like this, but for something like low stakes like a google search it seems overkill.
testforge·4 เดือนที่ผ่านมา·discussI always make sure to say "please" and "thank you". Hopefully in case of a skynet situation I'd be looked upon favorably for being polite.
testforge·4 เดือนที่ผ่านมา·discussInteresting. I could benefit from this, although it would be nice to have the option to use pounds instead of kg.
Right now the generator parses the OpenAPI spec, extracts endpoints/methods, and creates pytest tests using the requests library.
The generated tests include basic status code assertions, but I'm experimenting with adding schema validation and better parameter coverage.
One thing I'm curious about: how people currently bootstrap API tests when starting a new service.