Skip to content

Support CLI arguments to the run_tests tool #164

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

Closed
wants to merge 1 commit into from

Conversation

natebosch
Copy link
Member

Add strong language to the run_tests tool description asserting it's
use in favor of the CLI alternatives. Add support for forwarding
arbitrary CLI arguments so the MCP version is equally powerful as the
CLI versions. Check for a reporter argument specified by the client
before assuming the failure only reporter should be used. This may
allow a client to use the JSON reporter.

Add strong language to the `run_tests` tool description asserting it's
use in favor of the CLI alternatives. Add support for forwarding
arbitrary CLI arguments so the MCP version is equally powerful as the
CLI versions. Check for a reporter argument specified by the client
before assuming the failure only reporter should be used. This may
allow a client to use the JSON reporter.
Copy link

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@natebosch natebosch requested a review from jakemac53 June 10, 2025 19:31
return Tool(
name: 'run_tests',
description:
'Run Dart tests with an agent centric UX. '
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Run Dart tests with an agent centric UX. '
'Run Dart or Flutter tests with an agent centric UX. '

inputSchema: Schema.object(
properties: {
ParameterNames.roots: rootsSchema(supportsPaths: true),
'args': Schema.list(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add args to ParameterNames

Copy link
Contributor

@jakemac53 jakemac53 left a comment

Choose a reason for hiding this comment

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

Consider writing a test as well, for the reporter and args behavior

@natebosch
Copy link
Member Author

Superseded by #169

@natebosch natebosch closed this Jun 17, 2025
@natebosch natebosch deleted the string-list-args branch June 17, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants