Skip to content

Always use the failures-only reporter for testing #160

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

Merged
merged 5 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions pkgs/dart_mcp_server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# 0.1.1-wip

* Instruct clients to prefer MCP tools over running tools in the shell.

# 0.1.0 (Dart SDK 3.8.0)
# Dart SDK 3.8.0 - WP

* Handle relative paths under roots without trailing slashes.
* Fix executable paths for dart/flutter on windows.
Expand Down Expand Up @@ -40,3 +36,5 @@
* Add a hot reload tool.
* Add basic analysis support.
* Add the beginnings of a Dart tooling MCP server.
* Instruct clients to prefer MCP tools over running tools in the shell.
* Reduce output size of `run_tests` tool to save on input tokens.
2 changes: 1 addition & 1 deletion pkgs/dart_mcp_server/lib/src/mixins/dash_cli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ base mixin DashCliSupport on ToolsSupport, LoggingSupport, RootsTrackingSupport
Future<CallToolResult> _runTests(CallToolRequest request) async {
return runCommandInRoots(
request,
arguments: ['test'],
arguments: ['test', '--reporter=failures-only'],
commandDescription: 'dart|flutter test',
processManager: processManager,
knownRoots: await roots,
Expand Down
1 change: 0 additions & 1 deletion pkgs/dart_mcp_server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: dart_mcp_server
version: 0.1.1-wip
description: >-
An MCP server for Dart projects, exposing various developer tools to AI
models.
Expand Down
8 changes: 7 additions & 1 deletion pkgs/dart_mcp_server/test/tools/dart_cli_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,19 @@ dependencies:
command: [
endsWith(flutterExecutableName),
'test',
'--reporter=failures-only',
'foo_test.dart',
'bar_test.dart',
],
workingDirectory: exampleFlutterAppRoot.path,
)),
equalsCommand((
command: [endsWith(dartExecutableName), 'test', 'zip_test.dart'],
command: [
endsWith(dartExecutableName),
'test',
'--reporter=failures-only',
'zip_test.dart',
],
workingDirectory: dartCliAppRoot.path,
)),
]);
Expand Down