GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Introduce method filter support in the ConsoleLauncher by yhkuo41 · Pull Request #3169 · junit-team/junit-framework

Conversation

@yhkuo41

@yhkuo41 yhkuo41 commented Feb 25, 2023

Copy link
Copy Markdown
Contributor

Issue: #3107

Overview

Solves #3107.

After referring to other Filters (such as TagFilter), I am not sure if I should implement both IncludeMethodFilter and ExcludeMethodFilter, please let me know if I should remove IncludeMethodFilter.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

  • There are no TODOs left in the code
  • Method preconditions are checked and documented in the method's Javadoc
  • Coding conventions (e.g. for logging) have been followed
  • Change is covered by automated tests including corner cases, errors, and exception handling
  • Public API has Javadoc and @API annotations
  • Change is documented in the User Guide and Release Notes
  • All continuous integration builds pass

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

DomanovDI reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@sbrannen sbrannen added component: Platform type: new feature labels Feb 26, 2023
@sbrannen sbrannen linked an issue Feb 26, 2023 that may be closed by this pull request
Introduce exclude-method filter to complement select-method selector #3107
Closed
@sbrannen sbrannen added the status: new label Feb 26, 2023
@marcphilipp

marcphilipp commented Mar 3, 2023

Copy link
Copy Markdown
Member

After referring to other Filters (such as TagFilter), I am not sure if I should implement both IncludeMethodFilter and ExcludeMethodFilter, please let me know if I should remove IncludeMethodFilter.

We originally thought we didn't need an include filter because there's already a way to select particular methods. However, the latter does not allow specifying wildcards so there might be some use cases where it would be beneficial.

Team decision: Add both --include-methodname and --exclude-methodname.

DomanovDI reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

marcphilipp
marcphilipp reviewed Mar 3, 2023
View reviewed changes
Comment thread documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc Resolved

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41

yhkuo41 commented Mar 7, 2023

Copy link
Copy Markdown
Contributor Author

@marcphilipp Thanks for the feedback, I've added the cli options.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
yhkuo41 force-pushed the origin/issues/3107-method-filters branch 4 times, most recently from f03f888 to 2f26377 Compare April 19, 2023 04:11
@yhkuo41
yhkuo41 requested a review from marcphilipp April 24, 2023 02:30
marcphilipp
marcphilipp requested changes May 1, 2023
View reviewed changes

@marcphilipp marcphilipp left a comment

Copy link
Copy Markdown
Member

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.

I'm afraid I caused a lot of merge conflicts by introducing subcommands in the ConsoleLauncher recently. The new options should now be added to TestDiscoveryOptionsMixin.FilterOptions instead.

@Sakieye Do you have time to rework the PR?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

DomanovDI reacted with heart emoji yhkuo41 and DomanovDI reacted with eyes emoji
All reactions
  • ❤️ 1 reaction
  • 👀 2 reactions
Comment thread junit-platform-console/src/main/java/org/junit/platform/console/options/AvailableOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
yhkuo41 force-pushed the origin/issues/3107-method-filters branch from 22210ca to 2b90fd0 Compare May 21, 2023 14:44
@yhkuo41
yhkuo41 requested a review from marcphilipp May 21, 2023 15:00
@yhkuo41
yhkuo41 force-pushed the origin/issues/3107-method-filters branch from 2b90fd0 to bfc798b Compare May 28, 2023 13:29
@yhkuo41

yhkuo41 commented Jun 8, 2023

Copy link
Copy Markdown
Contributor Author

I'm afraid I caused a lot of merge conflicts by introducing subcommands in the ConsoleLauncher recently. The new options should now be added to TestDiscoveryOptionsMixin.FilterOptions instead.

@Sakieye Do you have time to rework the PR?

@marcphilipp I've updated my PR, please help review again

DomanovDI reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
yhkuo41 force-pushed the origin/issues/3107-method-filters branch from 3fdbe6d to ba42ab9 Compare July 26, 2023 01:04
@sbrannen sbrannen removed the status: new label Nov 4, 2023
@yhkuo41

yhkuo41 commented Aug 20, 2024

Copy link
Copy Markdown
Contributor Author

@marcphilipp Do you still need this feature? If so, I can update it sometime soon.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Sep 17, 2024

Copy link
Copy Markdown
Member

@marcphilipp Do you still need this feature? If so, I can update it sometime soon.

Yes, that'd be great if you're still interested! 👍

yhkuo41 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
Introduce method filter support in the ConsoleLauncher
fbfcb36
Issue: junit-team#3107
@yhkuo41
yhkuo41 force-pushed the origin/issues/3107-method-filters branch from ba42ab9 to fbfcb36 Compare September 23, 2024 09:56
@yhkuo41

yhkuo41 commented Sep 23, 2024

Copy link
Copy Markdown
Contributor Author

@marcphilipp I updated my PR again, please help review

marcphilipp reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
Merge branch 'main' into origin/issues/3107-method-filters
86d2aef
marcphilipp
marcphilipp requested changes Oct 15, 2024
View reviewed changes
Comment thread documentation/src/docs/asciidoc/release-notes/release-notes-5.12.0-M1.adoc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread junit-platform-launcher/src/main/java/org/junit/platform/launcher/ExcludeMethodFilter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread junit-platform-launcher/src/main/java/org/junit/platform/launcher/IncludeMethodFilter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread junit-platform-launcher/src/main/java/org/junit/platform/launcher/MethodFilter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread platform-tests/src/test/java/org/junit/platform/console/ConsoleLauncherIntegrationTests.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread junit-platform-launcher/src/main/java/org/junit/platform/launcher/MethodFilter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

yhkuo41 added 2 commits October 16, 2024 03:10
@yhkuo41
Ensure format consistency in release notes
6e8b61f
Issue: junit-team#3107
@yhkuo41
Use @test for single parameter test
c4e4716
Issue: junit-team#3107
marcphilipp
marcphilipp approved these changes Oct 16, 2024
View reviewed changes
@marcphilipp
marcphilipp merged commit 0de9d10 into junit-team:main Oct 16, 2024
@marcphilipp

marcphilipp commented Oct 16, 2024

Copy link
Copy Markdown
Member

@yhkuo41 Thank you for your contribution! 👍

yhkuo41 reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41

yhkuo41 commented Oct 16, 2024

Copy link
Copy Markdown
Contributor Author

My pleasure 😀

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhkuo41
yhkuo41 deleted the origin/issues/3107-method-filters branch December 17, 2024 18:59
This was referenced Feb 24, 2025
Bump junit from 5.11.4 to 5.12.0 kousen/java_8_recipes#125
Closed
Bump junit from 5.11.4 to 5.12.0 kousen/IntroGroovy#128
Closed
Bump junit from 5.11.4 to 5.12.0 kousen/junit5_workshop#251
Closed
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0 kousen/http-client-demo#43
Merged
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0 kousen/functional_modern_java#31
Closed
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0 kousen/java_upgrade#44
Merged
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0 kousen/java_9_recipes#45
Closed
Bump junit from 5.11.4 to 5.12.0 kousen/java_groovy_kotlin#194
Merged
This was referenced Mar 17, 2025
Bump junit from 5.11.4 to 5.12.1 kousen/java_8_recipes#127
Closed
Bump junit from 5.11.4 to 5.12.1 kousen/IntroGroovy#130
Closed
Bump junit from 5.11.4 to 5.12.1 kousen/junit5_workshop#254
Merged
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.1 kousen/java_9_recipes#46
Closed
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.1 kousen/functional_modern_java#32
Closed
This was referenced Apr 14, 2025
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.2 kousen/java_9_recipes#47
Closed
Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.2 kousen/functional_modern_java#33
Closed
Bump junit from 5.11.4 to 5.12.2 kousen/java_8_recipes#131
Closed
Bump junit from 5.11.4 to 5.12.2 kousen/IntroGroovy#132
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@marcphilipp marcphilipp marcphilipp approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

component: Platform type: new feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Introduce exclude-method filter to complement select-method selector

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@yhkuo41 @marcphilipp @sbrannen
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.