Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6611e17

Browse files
authored
use rest args for specifying test targets (#13088)
1 parent 4cd64db commit 6611e17

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/web_ui/dev/test_runner.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ import 'utils.dart';
2222
class TestCommand extends Command<bool> {
2323
TestCommand() {
2424
argParser
25-
..addMultiOption(
26-
'target',
27-
abbr: 't',
28-
help: 'The path to the target to run. When omitted, runs all targets.',
29-
)
3025
..addFlag(
3126
'debug',
3227
help: 'Pauses the browser before running a test, giving you an '
@@ -75,7 +70,7 @@ class TestCommand extends Command<bool> {
7570
bool get isDebug => argResults['debug'];
7671

7772
/// Paths to targets to run, e.g. a single test.
78-
List<String> get targets => argResults['target'];
73+
List<String> get targets => argResults.rest;
7974

8075
/// See [ChromeInstallerCommand.chromeVersion].
8176
String get chromeVersion => argResults['chrome-version'];

0 commit comments

Comments
 (0)