zijianhuang / openapiclientgen

Generate strongly typed C# and TypeScript client codes from Open API / Swagger definitions supporting jQuery, Angular, AXIOS, Fetch API, Aurelia and Angular Strictly Typed Forms
MIT License
68 stars 13 forks source link

option to generate test cases for generated C# codes and Angular Typed Forms #60

Open zijianhuang opened 8 months ago

zijianhuang commented 8 months ago

SDLC in application development:

  1. generate the skeleton test cases. And keep the skeleton.
  2. Make a copy of the skeleton codes, and fill it with test data to form a test suite.
  3. Next time when the API is updated, generate new skeleton codes.
  4. Compare the new one with the old one, and extract the + delta using a text diff tool.
  5. Copy the + delta to the test suite and fill with test data.
  6. Manually remove the - delta from the test suite.

Do this after v3.1