Skip to content

feat(cli): Allow specifying target filenames by globbing#12

Merged
sator-imaging merged 4 commits into
mainfrom
feature/glob-file-selection-5678090869467451192
Jan 13, 2026
Merged

feat(cli): Allow specifying target filenames by globbing#12
sator-imaging merged 4 commits into
mainfrom
feature/glob-file-selection-5678090869467451192

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This change allows users to specify target test files in the CLI using glob patterns, providing a more flexible and powerful way to select tests. It replaces the old --filter argument with a more robust mechanism that accepts multiple glob patterns. The implementation uses the Microsoft.Extensions.FileSystemGlobbing library and includes a default pattern for backward compatibility.


PR created automatically by Jules for task 5678090869467451192 started by @sator-imaging

This commit introduces the ability to specify target test files in the CLI using glob patterns. It replaces the previous `--filter` argument with a more flexible mechanism that accepts multiple glob patterns as command-line arguments.

- Adds the `Microsoft.Extensions.FileSystemGlobbing` package to the CLI project.
- Implements a robust argument parser to distinguish between options and glob patterns.
- Uses the `Matcher` class to find test files matching the provided glob patterns.
- Defaults to the `**/*test*.cs` pattern for backward compatibility when no patterns are provided.
- Updates the error message to display the correct glob pattern information.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@sator-imaging sator-imaging marked this pull request as ready for review January 13, 2026 01:55
@sator-imaging sator-imaging self-requested a review as a code owner January 13, 2026 01:55
Comment thread cli/Program.cs
Adds a source code comment to `cli/Program.cs` to explain the dependency on argument position for file glob pattern detection. This addresses the feedback from the pull request review.
Updates the source code comment in `cli/Program.cs` to more accurately describe how the argument parsing logic distinguishes between options, their values, and file glob patterns. This addresses the feedback from the pull request review.
Updates the source code comment in `cli/Program.cs` to acknowledge a limitation in the argument parsing logic. This addresses the feedback from the pull request review.
@sator-imaging sator-imaging force-pushed the feature/glob-file-selection-5678090869467451192 branch from ed07eaa to 340ba73 Compare January 13, 2026 02:32
@sator-imaging sator-imaging merged commit 565f2c1 into main Jan 13, 2026
4 checks passed
@sator-imaging sator-imaging deleted the feature/glob-file-selection-5678090869467451192 branch January 13, 2026 03:19
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.

1 participant