olamy commented on PR #3179:
URL: https://github.com/apache/maven-surefire/pull/3179#issuecomment-3404552351

   > Just to point out: according to the JUnit 6 [release 
notes](https://docs.junit.org/6.0.0/release-notes/#release-notes-6.0.0-junit-vintage),
 the JUnit Vintage engine is deprecated and (to quote) "it should only be used 
temporarily while migrating tests to JUnit Jupiter or another testing framework 
with native JUnit Platform support".
   > 
   > What would the ramifications be for Surefire users that still use JUnit 
3/4 tests if this change goes through & then later the JUnit folks decide to 
abruptly drop the JUnit Vintage engine in a future JUnit release?
   
   You will have a few ways to go about this:
   
   - Option 1: Easiest one, just stick with the last Surefire version before 
this PR is merged by setting it in your pluginManagement. Since you’re already 
on the older JUnit 3/4 (which are deprecated anyway), it’s totally fine to stay 
on an older Surefire for now.
   
   - Option 2: Surefire will pick up whatever JUnit version or platform it 
finds (JUnit, JUnit Platform, or JUnit Vintage) from your pom. So unless you’re 
moving to JUnit 6.x (or a Vintage version that dropped JUnit 3/4 support), you 
should be all good.
   
   - Option 3: If you’re thinking about updating things, you could use a tool 
like OpenRewrite or even an AI helper to migrate your tests to JUnit 5 or 6.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to