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

improvement: trim spaces when filtering the only tests that should be run #2171

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

shasts
Copy link
Contributor

@shasts shasts commented Oct 6, 2023

Often, when copying the failed test path from Jenkins CI or Gradle Enterprise webpage, the path copied might contain leading or trailing space(s). Pasting the failed test path into the -o switch requires carefully removing the space from both ends.

Example:
bloop test project-it -o ' a.b.c.Test' --config-dir=../.bloop
This command would not run the test a.b.c.Test

This PR fixes the annoyance by trimming the path before matching the pattern.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! LGTM

@tgodzik tgodzik merged commit 240095a into scalacenter:main Oct 6, 2023
17 checks passed
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