-
Notifications
You must be signed in to change notification settings - Fork 213
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
[testing] Switch to junit5 #1128
Conversation
Fixes tests for modern jvms.
@@ -344,6 +344,10 @@ Setup a simple kotlin_test. | |||
default = Label("@bazel_tools//tools/jdk:TestRunner_deploy.jar"), | |||
allow_files = True, | |||
), | |||
"use_testrunner": attr.bool( |
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.
What exactly is this flag solving for and when would you use it externally vs. setting it to False
?
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.
It matches java_test.use_testrunner. It allows customizing the test execution environment. In this case, we replace the bazel test runner with JUnit5.
* [testing] Switch to junit5 Fixes tests for modern jvms. * Fix docs, remove jcenter, add security manager disable * fix java security manager * back out of trying to fix security manager * fix docs
* [testing] Switch to junit5 Fixes tests for modern jvms. * Fix docs, remove jcenter, add security manager disable * fix java security manager * back out of trying to fix security manager * fix docs
This reverts commit 60e1636.
This reverts commit 60e1636.
Fixes tests for modern jvms.