Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3816
Closed
Open
Issue created Sep 02, 2019 by Administrator@rootContributor

[REQ] [Dart] Add testing of generated client to CI

Created by: nickmeinhold

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

Currently CI runs the generated tests that are part of the petstore client library, but these are all empty passing tests.

Describe the solution you'd like

It would be helpful to have a reasonable set of tests that are run by the CI in order to have confidence that any fixes/enhancements to the dart generator haven't broken things.

Describe alternatives you've considered

It would be great to get input on how to proceed, we could:

  • edit the dart generator to include tests in the output client libs (probably limit to tests everyone would want in the lib, eg. no platform specific tests)
  • run separate tests (potentially in a staging environment) by test apps that import the client lib
  • a combination of the above

Additional context

  • there is a set of tests at samples/client/petstore/dart2/petstore that are not currently run in CI
    • several fail when run in my local environment
    • seems that stubbed server responses would solve most of the problems though
  • currently all dart testing is done on Drone, see CI/.drone.yml
  • EDIT: just found this too, not sure how it fits in yet:
    • https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart
Assignee
Assign to
Time tracking