Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Most auto-generated tests can not be used in CLI #774

Open houk-ms opened 3 years ago

houk-ms commented 3 years ago

Why do you need this feature?

Otherwise i need manually write CLI tests, which consumes losts of time.

I also have to write CLI tests under the code framework generated by code-gen, which is more difficult than writing test cases in pure CLI code base.

Is your feature request related to a problem? Please describe.

This is more like a swagger quality problem rather than code-gen tool's issue. Just keep the issue here for tracking, in case we can think of some solutions from code-gen or CLI side before swagger could become good enough.

Describe the solution you'd like

I hope Code-gen could generate CLI scenario tests without manual modifications.

Describe alternatives you've considered

Shift-left is a lonf-term solution. I have no good idea what can be done now.

Additional context

No.

changlong-liu commented 3 years ago

need swagger team solution