Skip to content
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

refactor: Use Maven Integration Test framework to run some integration tests. #474

Merged

Conversation

michael-simons
Copy link
Contributor

For a full reasoning of this PR please have a look at the commit message of ccfafe7. This PR is based on PR #473 and contains ac9a205 from that PR.

In short: The changes makes MavenProjectLIncensesIT run proper and delegates all the resource copying to the Maven Integration test framework.

  • fix: Configure the project for the ProjectBuildingRequest being used.
  • refactor: Use Maven Integration Test framework to run some integration tests.

@hazendaz
Copy link
Collaborator

@michael-simons Merged your other PR, can you rebase this one?

Copy link
Owner

@mathieucarbou mathieucarbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍

@hazendaz
Copy link
Collaborator

@michael-simons Nice find on that IT test logic from maven. I was unaware of that coming into existense. That will be useful on other projects I maintain :)

@michael-simons
Copy link
Contributor Author

Sure. I’ll take care of the rebase.

I’m pretty sure @khmarbaise will be pleased to hear this.

…n tests.

This makes the `MavenProjectLicensesIT` actually run during verification. The testing framework by Karl Heinz Marbaise takes care of resource copying and filtering and also manual verifcation can be simplified.

The biggest advantage of this approach is not having to locally install snapshot variants all the time and a streamlined process.

Debugging is still possible (see link in the JavaDoc) via remote debugger.
@michael-simons
Copy link
Contributor Author

michael-simons commented Feb 13, 2023

Rebased and green. Thanks for including it and moving the project forward. I really like your approach of this topic*), thank you.

*) header and simple yet "good enough" license check

@mathieucarbou
Copy link
Owner

Rebased and green. Thanks for including it and moving the project forward. I really like your approach of this topic*), thank you.

*) header and simple yet "good enough" license check

tanks! still 5 pending checks ;-) there's a lot!

@mathieucarbou mathieucarbou merged commit c4fb21e into mathieucarbou:master Feb 13, 2023
@hazendaz hazendaz self-assigned this Feb 13, 2023
@mathieucarbou mathieucarbou added this to the 4.2 milestone Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants