-
Notifications
You must be signed in to change notification settings - Fork 36
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
Quarkus CLI update test #1868
Quarkus CLI update test #1868
Conversation
quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/update/AbstractQuarkusCliUpdateIT.java
Outdated
Show resolved
Hide resolved
run tests |
please ignore |
I've added actual tests. @gtroitsk Please have a look at them. |
I will look at it later today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I afraid that actual TC is not enough. I think we need to test wider set of changes, scope is up to you. Maybe Michal V. or Rostislav have some comments.
For testing properties ideally we should create real app reflecting the customer's usage scenario including test coverage (taken from TP). We can't relate that new names are syntactically correct.
Also can you please add an option/tests for RHBQ apps.
I agree that we should tests entire apps. I'm working on it (created first app for hibernate update). I plan to add more for methods and packages renames. Could you be more specific what would you like to see as TC "wider set of changes"? I'm following recipes and migration guides and testing stuff from them. Yes I will add RBHQ updates. |
Under TC "wider set of changes" I meant test as must as possible recipes and changes from migration guides. You follow it, so I am fine. |
Testing I think it would be better to drop this PR and move update tests into separate GH repo, for which we can setup appropriate workflow. WDYT @gtroitsk @rsvoboda @michalvavrik ? |
If that's a true it's a problem. I'll be honesty, I don't understand why updating from released RHBQ to RHBQ that is being released would required the released RHBQ locally. I'd expect that update command use remote Maven repository. Can you clarify this a bit? |
After updating local quarkus CLI setup to work with RHBQ, current test design work surprisingly well with RHBQ. |
I've added support for testing updates to specific bom version. |
Can you please review this @gtroitsk @michalvavrik ? The tests should be done, I'm keeping it as a draft before framework is released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I skimmed through changes, they LGTM. I am afraid I don't have proper time to in depth review in the next week and half. AFAICT it's ok. Maybe you will need additional reviewer. Thanks!
quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/update/Quarkus32to38CliUpdateIT.java
Outdated
Show resolved
Hide resolved
quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/update/Quarkus213to38CliUpdateIT.java
Outdated
Show resolved
Hide resolved
23ebf94
to
cade3d0
Compare
@mocenas 8 commits for 2 new files is bit excessive, please squash your commits. |
cade3d0
to
7946756
Compare
I intended to squash them during merge, but OK done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Failures are not related, so I'm merging this. |
Summary
This PR does not work, as it requires quarkus-qe/quarkus-test-framework#1188 to be effective here.
This makes a proposal how Quarkus CLI test could look in the future. Idea is to create common tests and other support methods in parent class and making some kind of a "framework". For each new tested version we can add new class, which should be more or else simple.
Edit: This PR requires quarkus-qe/quarkus-test-framework#1236 and other things in framework 1.5.0.Beta13. So do not merge until this is released and updated in TS.
Please select the relevant options.
run tests
phrase in comment)Checklist: