-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore java test code in samples #247
Comments
The real commit (the one included on the Git command to see what was modified with this commit:
I will analyze the results. |
I did some analysis and I propose to restore following files at commit c8c316e (see the list at the end of this message) See my commit: jmini@ce671d8 Feedback is welcome. I will soon open a PR: |
There should also be tests for the petstore (PetApiTest, StoreApiTest, UserApiTest) |
Ok I definitively need more background on this. The generated stuff is still there: Before my commit: Now the file still exists (introduced with e0b0248)
The package names have changed, but this is documented: New default values for the generated code What was lost during the process are the manual written Unit tests, that are added to the sample after code generation. I thought this issue is about restoring them. Please continue the discussion. I am not sure I got everything right. |
The tests you see are the auto-generated tests. But for the samples we had true implementations of tests with actual assertions validating the responses. The scripts normally prevent overriding these files during generation. These tests allow to validate the generated code more deeply. |
See this diff for a part of the code that was removed. |
Did you progress on that ? We still don't have good CI tests on our Java clients... |
I started it twice (there is a branch on my fork), but it requires some time to do it properly (to sort out what needs to be rested and what not). The setup with the local host table (see this page) is also complicated for me (never took the time to do the setup locally) I also wanted to run the petstore server directly (without docker), but nobody replied to the change proposed here OpenAPITools/openapi-petstore#6 (the ultimate goal is to build the petstore server and to deploy a released artifact on Maven Central - this way we can fetch it and start it on the JVM, no docker and port mapping involved) I my opinion working on a solution as described in #689 would add more value than working on this (which does not imply that I will not solve this, both approaches are complementary) |
We should work on this issue... |
@cbornet :
The text was updated successfully, but these errors were encountered: