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

Set placeholder values in the test POM during the test run #201

Open
sparsick opened this issue May 29, 2021 · 0 comments
Open

Set placeholder values in the test POM during the test run #201

sparsick opened this issue May 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sparsick
Copy link
Sponsor Contributor

Is your feature request related to a problem? Please describe.
When implementing georgberky/dependency-update-maven-plugin#28 we needed a test where the scm configuration in the test POM <scm> is set during the @BeforeEach phase, where we can define the git repository url.

Describe the solution you'd like
It is already possible to use a placeholder variable in the test POM like

<scm>
  <connectionUrl> ${myPlaceholder}</connectionUrl>
</scm>

The idea is now to set the value of this placeholder variable in the @BeforeEach phase of JUnit5

Describe alternatives you've considered

Other idea could be to manipulate the POM model programmatically in the JUnit5 tests. But IMHO this solution makes it more difficult to the readability of the tests.

@sparsick sparsick added the enhancement New feature or request label May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant