-
Notifications
You must be signed in to change notification settings - Fork 1.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
Migrate log4j-jul
to JUnit 5
#3225
Migrate log4j-jul
to JUnit 5
#3225
Conversation
Hi, we are currently blocked and would like your advice. We've found out that the |
The problem with logging-log4j2/log4j-jul/src/test/java/org/apache/logging/log4j/jul/test/CoreLoggerTest.java Lines 59 to 62 in 031d4da
To workaround that, all the tests must be split into at least 4 Surefire runs, depending on the system properties that they need. <execution>
<id>async-logger-test</id>
<goals>
<goal>test</goal>
</goals>
<phase>test</phase>
<configuration>
<includes>
<include>**/AsyncLoggerThreadsTest.class</include>
</includes>
<!-- Use custom `j.u.l.LogManager` and an asynchronous selector -->
<systemPropertyVariables>
<java.util.logging.manager>org.apache.logging.jul.tolog4j.LogManager</java.util.logging.manager>
<log4j2.contextSelector>org.apache.logging.log4j.core.async.AsyncLoggerContextSelector</log4j2.contextSelector>
</systemPropertyVariables>
</configuration>
</execution>
|
552b858
to
1fe1c2d
Compare
1fe1c2d
to
7ecae66
Compare
Hello @ppkarwasz , thank you for your help, it unblocked me. |
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, thanks!
Hello @ppkarwasz. I wanted to ask if this refactor needs to be ported to |
I have the impression that you did all the ports to |
@ppkarwasz I've compiled a small list with our changes:
Am I correct in understanding that three modules require porting? ( Please note this PR #3221 was related to the migration but not done by us. If I'm not mistaken this is not in Thank you |
There might be a lot of differences in
Thanks for the remark, we didn't notice that, sorry. We'll double-check that PR to see if it contains independent work or is just a squash of all your PRs. |
Thank you. I've incorporated the applicable changes from
It contains independent work, I don't think it include our changes |
Hello 👋
We are from Neighbourhoodie, the implementation partner of the STF Bug Resilience Program. This work is part of our agreed Milestone 1. Upgrade from JUnit 4 to JUnit 5. This PR migrates the tests located in
log4j-jul
.Thank you!
Checklist
2.x
branch if you are targeting Log4j 2; usemain
otherwise./mvnw verify
succeeds (if it fails due to code formatting issues reported by Spotless, simply run./mvnw spotless:apply
and retry)src/changelog/.2.x.x
directory