[Dart-dio] Add basic integration testing and fix compile errors#8025
Merged
wing328 merged 5 commits intoOpenAPITools:masterfrom Dec 2, 2020
Merged
Conversation
This basically just fetches dependencies, runs the built_value generator and empty test cases. Even running empty test cases is more than is currently possible and at least finds compile errors. There are compile errors atm which need to be fixed.
* the compile error was `serializerForType(Map<String, int>)` in `StoreApi` which needs to be `serializerForType(Map)` * use final instead of var in response handling
Contributor
Author
|
@josh-burton I have added a some integration testing and fixed 2 compile errors. One caused by the inline enum support. |
Contributor
Author
This was referenced Nov 26, 2020
Contributor
Author
Member
|
Can you please add the following line to https://github.com/OpenAPITools/openapi-generator/blob/master/pom.xml#L1352 so that the CI will run the tests as part of the build? |
Member
|
@kuhnroyal thanks for the PR to add test coverage for the petstore dart-dio client 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a basic integration test to the Dart-dio generator.
There are no real tests for the moment but OpenApi test templates are added which generate empty test cases. Running these empty test cases at least ensures that the generated code compiles.
The PR also fixes 2 compile errors that are now catched due to the tests.
PR checklist
./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.master