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

Add wildcard support on rez test command #1870

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Ni-g-3l
Copy link

@Ni-g-3l Ni-g-3l commented Nov 5, 2024

Allow user to run multiple tests thanks wildcard

For example:

  • rez test testing_obj-1.0 command_as_* will run command_as_string_success and command_as_string_fail`
  • rez test testing_obj-1.0 command_as_* check_car_ideas will run command_as_string_success, command_as_string_fail' and check_car_idea`

@Ni-g-3l Ni-g-3l requested a review from a team as a code owner November 5, 2024 21:59
Copy link

linux-foundation-easycla bot commented Nov 5, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@JeanChristopheMorinPerso
Copy link
Member

Hi @Ni-g-3l, thanks for creating this PR.

Before we can review and consider your changes, you will need to sign the CLA. See the comment above for details.

Let us know if you have questions.

@JeanChristopheMorinPerso JeanChristopheMorinPerso added the Blocked by CLA Waiting on CLA to be signed label Nov 6, 2024
Signed-off-by: Nig3l <nig3lpro@gmail.com>
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Project coverage is 59.31%. Comparing base (21a5735) to head (0741106).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/rez/cli/test.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1870      +/-   ##
==========================================
+ Coverage   59.28%   59.31%   +0.02%     
==========================================
  Files         126      126              
  Lines       17217    17223       +6     
  Branches     3017     3017              
==========================================
+ Hits        10207    10215       +8     
+ Misses       6325     6323       -2     
  Partials      685      685              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JeanChristopheMorinPerso
Copy link
Member

Thanks, I triggered the CI.

Ni-g-3l and others added 2 commits November 8, 2024 12:36
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments that I think should be easy to address.

Thank you so much for adding tests! I love it.

@@ -206,6 +207,16 @@ def get_test_names(self, run_on=None):

return self.get_package_test_names(package, run_on=run_on)

def find_requested_test_names(self, requested_tests):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umm, could we maybe add a new parameter to get_test_names? I'm not sure why we need a different method when get_test_names could have the ability to do all the filtering for us.

What do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to separate fetch tests from packages and filter them on regex in order keep available to fetch tests without any filter, but I could be wrong and this case won't appear the future. As you want I can make the fix I you want

src/rez/package_test.py Outdated Show resolved Hide resolved
@JeanChristopheMorinPerso JeanChristopheMorinPerso added this to the Next milestone Jan 26, 2025
@JeanChristopheMorinPerso JeanChristopheMorinPerso changed the title Add Wildcard support on rez test command Add wildcard support on rez test command Jan 26, 2025
Signed-off-by: Nig3l <nig3lpro@gmail.com>
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