Skip to content
Open
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
10 changes: 10 additions & 0 deletions lib/src/mcp/mcp_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ Only one value can be selected.
'(e.g. // coverage:ignore-line). '
'Only applies to Dart tests (dart: true).',
),
'show_uncovered': BooleanSchema(
description:
'Whether to list uncovered lines when coverage is below '
'100%. Implicitly enables coverage collection when used '
'alone. Useful for identifying which lines still need '
'tests after a min_coverage failure.',
),
'timeout_seconds': IntegerSchema(
description:
'Maximum seconds to wait for the test run before killing '
Expand Down Expand Up @@ -441,6 +448,9 @@ Only one value can be selected.
if (args['check_ignore'] == true) {
cliArgs.add('--check-ignore');
}
if (args['show_uncovered'] == true) {
cliArgs.add('--show-uncovered');
}
if (args['timeout_seconds'] != null) {
cliArgs.addAll([
'--timeout',
Expand Down
2 changes: 2 additions & 0 deletions test/src/mcp/mcp_server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ void main() {
'platform': 'chrome',
'run_skipped': true,
'check_ignore': true,
'show_uncovered': true,
'timeout_seconds': 60,
},
),
Expand Down Expand Up @@ -426,6 +427,7 @@ void main() {
'chrome',
'--run-skipped',
'--check-ignore',
'--show-uncovered',
'--timeout',
'60',
]),
Expand Down
Loading