Introduce experimental memory cleanup mode#5588
Draft
marcphilipp wants to merge 7 commits intomainfrom
Draft
Conversation
sormuras
reviewed
Apr 7, 2026
...-platform-launcher/src/main/java/org/junit/platform/launcher/core/MemoryCleanupListener.java
Outdated
Show resolved
Hide resolved
Contributor
public static void main(String[] args) {
SummaryGeneratingListener listener = new SummaryGeneratingListener();
LauncherFactory.create()
.execute(LauncherDiscoveryRequestBuilder.discoveryRequest()
.selectors(DiscoverySelectors.selectClass(RunCucumberTest.class))
.build(), listener);
listener.getSummary()
.printFailuresTo(new PrintWriter(System.out));
}edit: Likewise public static void main(String[] args) throws IOException {
ConsoleLauncher.main("execute", "--select-package", "com.example.project");
}But at least the tree summary works. 😄 |
mpkorstanje
reviewed
Apr 7, 2026
junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestPlan.java
Outdated
Show resolved
Hide resolved
Member
Author
|
@mpkorstanje I pushed 48f77bb to fix the exception reported above. |
mpkorstanje
reviewed
Apr 8, 2026
|
|
||
| private final TestPlan testPlan; | ||
| private final List<Failure> failures = synchronizedList(new ArrayList<>()); | ||
| private final Map<UniqueId, String> descriptions = new ConcurrentHashMap<>(); |
Contributor
There was a problem hiding this comment.
The description could be made part of the DefaultFailure.
Member
Author
There was a problem hiding this comment.
I didn't want to break serialization compatiblity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #5344