-
Notifications
You must be signed in to change notification settings - Fork 13.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
KAFKA-15623: Remove junit 4 from stream module #16447
Conversation
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.
@m1a2st thanks for this patch
build.gradle
Outdated
} | ||
useJUnitPlatform { | ||
includeTags "integration" | ||
includeEngines "junit-jupiter" |
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.
Could you add it to test
task for consistency?
…tPlatform to test task
@chia7712, Thanks for your conversations, PTAL |
build.gradle
Outdated
@@ -482,7 +482,10 @@ subprojects { | |||
|
|||
exclude testsToExclude | |||
|
|||
useJUnitPlatform() | |||
useJUnitPlatform { | |||
includeTags "integration" |
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.
this is incorrect. we have three test-related tasks: test
, unitTest
and integrationTest
. test
does not need to include/exclude tags. unitTest
needs excludeTags "integration"
and integrationTest
needs includeTags "integration"
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.
@m1a2st thanks for updated PR.
BTW, could you please remove the duplicate declaration from storage
module?
https://github.com/apache/kafka/blob/trunk/build.gradle#L2031
build.gradle
Outdated
@@ -482,7 +482,9 @@ subprojects { | |||
|
|||
exclude testsToExclude | |||
|
|||
useJUnitPlatform() | |||
useJUnitPlatform { | |||
includeEngines "junit-jupiter" |
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.
includeEngines 'junit-jupiter'
includeTags "integration" | ||
} | ||
useJUnitPlatform { | ||
includeTags "integration" |
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.
Could you please add specific test engine explicitly?
excludeTags "integration" | ||
} | ||
useJUnitPlatform { | ||
excludeTags "integration" |
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.
Could you please add specific test engine explicitly?
remove all junit 4 dependency from stream module
Committer Checklist (excluded from commit message)