How to generate the spec files from the spock templates? #2158
-
I see there are test templates for spock and junit, but I dont see anything in the docs on how to put these to use. I see the tests that run against these generators use a cli implementation, is this a cli iteration of the micronaut-openapi that we can install locally? trying to dig through this codebase to answer my own questions, but I'm curious if this is already made known elsewhere that I'm not seeing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Jonathan-Zollinger No, these templates are not used. You can only generate a model and an API (server or client). Honestly, I don't think these auto-generated empty test classes are useful at all. You are the first one who even asked about them. So the answer is simple: at the moment, nothing. Test and documentation templates are a legacy from an old version of the generator, when it was part of the openapi-generator project |
Beta Was this translation helpful? Give feedback.
@Jonathan-Zollinger No, these templates are not used. You can only generate a model and an API (server or client). Honestly, I don't think these auto-generated empty test classes are useful at all. You are the first one who even asked about them.
So the answer is simple: at the moment, nothing. Test and documentation templates are a legacy from an old version of the generator, when it was part of the openapi-generator project