-
Notifications
You must be signed in to change notification settings - Fork 167
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
Generate at build time the metadata for theme editor tests #17612
Generate at build time the metadata for theme editor tests #17612
Conversation
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.
If they are generated at runtime I would not commit them into git. I would put them inside target/test-resources or similar. That way we do not have to push changes each time source TS metadata change.
They should have .json extension.
I agree. I will try to move them to target/somewhere and see if I can get them, as you suggest.
ok |
@brunovianarezende your PR looks awesome! Just remove the metadata information, make sure that it is executed during build, rebase and we are good to go! Thanks again for a hard and productive work :) |
thanks! I will see if I can do as suggested by Marcin and then update this PR. |
In the last commit I:
|
c542f7b
to
bfd860b
Compare
These changes are good. I am approving them as well as the while PR. Please rebase and proceed with merge. Thank you! |
Instead of writing the metadata to the theme-editor-tests folder and saving them in the repository, we'll, at build time, write the data to vaadin-dev-server/src/main/resources/META-INF/metadata and provide a utility class to read such data for the tests. This dir will be ignored in .gitignore. This way vaadin-dev-server will be responsible for providing the info needed and we won't need to change a project as part of building other project.
bfd860b
to
cf63a75
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
The theme editor tests need files describing what are the properties available for the user. This PR creates such files at build time, in the vaadin-dev-server project.
Type of change
Checklist
Additional for
Feature
type of change