Re:Show HN: We built a tool that automatically generates you...
by barefeg on Monday October 10, 2022 @01:16PM
(#33153998)
I was looking in the site to understand the automatic generation of tests from OpenAPI but I couldn’t find it. Maybe it’s very obvious but I missed it. Does it mean that it produces test cases from the examples provided? Or how does it figure out the request response pairs?
[ Parent
| on HN ]
Re:Show HN: We built a tool that automatically generates you...
by Wissmueller on Monday October 10, 2022 @01:57PM
(#33154442)
Thank you for the question!:)
You can generate tests from your OpenAPI definition using the “import from OpenAPI” button on our website.
The tests are generated from your request/response examples. If there are no examples given/available, we will generate examples for you based on the schema provided.
Re:Show HN: We built a tool that automatically generates you...
by barefeg on Monday October 10, 2022 @02:55PM
(#33155150)
Thanks for the quick answer! Are the examples generated based on the types? As in if a field is set as an integer, the tests will pass arbitrary integers? But still how does it know how to produce positive examples? Do you maybe have some documentation on this functionality?
Re:Show HN: We built a tool that automatically generates you...
by ushakov on Tuesday October 11, 2022 @07:04AM
(#33161824)
Yes! We generate placeholder values that are based on the types defined in your schema
We don't have documentation for it at the moment, but the code for our OpenAPI integration is open-source on GitHub: https://github.com/stepci/plugin-openapi