Skip to content

Commit

Permalink
Do not perform JUnit4to5Migration where TestNG is used (#592)
Browse files Browse the repository at this point in the history
* Do not perform JUnit4 to 5 migration when testNG is used

* Update src/main/resources/META-INF/rewrite/junit5.yml

Co-authored-by: Tim te Beek <[email protected]>

---------

Co-authored-by: Laurens Westerlaken <[email protected]>
Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent cea706a commit fd664b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/junit5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ description: Migrates JUnit 4.x tests to JUnit Jupiter.
tags:
- testing
- junit
preconditions:
- org.openrewrite.java.search.DoesNotUseType:
fullyQualifiedTypeName: org.testng..*
includeImplicit: true
recipeList:
- org.openrewrite.java.testing.junit5.UseWiremockExtension
- org.openrewrite.java.testing.junit5.IgnoreToDisabled
Expand Down

0 comments on commit fd664b2

Please sign in to comment.