-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Introduce org.junit.start module
#5042
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
base: main
Are you sure you want to change the base?
Conversation
org.junit.onramp moduleorg.junit.start module
junit-platform-commons/src/main/java/org/junit/platform/commons/util/ModuleUtils.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
documentation/src/docs/asciidoc/release-notes/release-notes-6.1.0-M1.adoc
Outdated
Show resolved
Hide resolved
documentation/src/docs/asciidoc/release-notes/release-notes-6.1.0-M1.adoc
Outdated
Show resolved
Hide resolved
platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/Projects.java
Outdated
Show resolved
Hide resolved
…1.0-M1.adoc Co-authored-by: Marc Philipp <mail@marcphilipp.de>
| Java 25 introduced Module Import Declarations with {JEP511} and Compact Source Files | ||
| and Instance Methods with {JEP512}. The `org.junit.start` module is JUnit's "On-Ramp" | ||
| enabler, allowing to write minimal source code programs. For example, like in a | ||
| `HelloTests.java` file reading: |
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.
There is a lot of jargon and detail in this paragraph. It gets in the way of conveying the essence. Consider something like:
Starting with Java 25 it is possible to write minimal source code programs using the
org.junit.startmodule. For example, like in a
HelloTests.javafile reading:
| Assertions.assertEquals(11, "Hello JUnit".length()); | ||
| } | ||
| ``` | ||
| With all required modular JAR files available in a local `lib/` directory, the |
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.
Is the question of which modules, and how to obtain them out of scope for this PR?
| └─ stringLength() ✔ | ||
| ``` | ||
|
|
||
| Find JUnit's class API documentation here: {JUnit} |
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.
After running ./gradlew asciidoctor I'm getting 404s for this URL. Is there another command that should be ran?
| /** | ||
| * @since 1.11 | ||
| */ | ||
| class SearchPathUtils { |
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 new class will probably trip up Graals native-build-tools (#5134).
Please review this PR introducing the
org.junit.startmodule.Closes #4982
New "Source Launcher" section in "Running Tests" of the User Guide
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations