Skip to content
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

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Conversation

restingbull
Copy link
Collaborator

Fixes tests for modern jvms.

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(
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@restingbull restingbull requested a review from Bencodes March 13, 2024 02:22
@restingbull restingbull merged commit 60e1636 into master Mar 15, 2024
4 checks passed
@restingbull restingbull deleted the restingbull/switch-to-junit-5 branch March 15, 2024 17:09
restingbull added a commit that referenced this pull request Mar 15, 2024
* [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
restingbull added a commit that referenced this pull request Mar 15, 2024
* [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
restingbull added a commit that referenced this pull request Mar 22, 2024
restingbull added a commit that referenced this pull request Mar 24, 2024
restingbull added a commit that referenced this pull request Mar 24, 2024
* Revert "Remove leading . from package inference (#1142)"

This reverts commit 10452e1.

* Revert "[testing] Switch to junit5 (#1128)"

This reverts commit 60e1636.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants