News for hackers. Stuff that matters.

testforge

Happy 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.

Show HN: Generate pytest API tests from an OpenAPI spec

https://openapi-test-generator.vercel.app/

Hi HN,I built a tool that generates pytest API tests from an OpenAPI spec.You can paste an OpenAPI URL and it generates a baseline pytest suite that hits each endpoint.Live demo: https://openapi-test-generator.vercel.app/GitHub: https://github.com/ryancrandall801/openapi-test-generator

( Read More... | 1 comment | on HN )
Re:Ask HN: Did you ever have a supernatural experience? on Sunday March 15, 2026 @10:43AM (#47387874)
I feel like dreams are the most supernatural thing I've experienced.
Wireless audio traded a trivial inconvenience (a cable) for multiple new inconveniences.
Re:Ask HN: Would this eliminate bots for good? on Saturday March 14, 2026 @10:40AM (#47377175)
1. 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.
I 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.
Interesting. I could benefit from this, although it would be nice to have the option to use pounds instead of kg.