Skip to content

Commit 04e0847

Browse files
docs: add example glob pattern to --exclude-coverage help text (#1452)
* docs: add example glob pattern to --exclude-coverage help text Clarifies that recursive glob patterns (e.g. '**/*.g.dart') are needed to match files in subdirectories. Closes #654 * test: update test expectations * test: update test expectations * fix: avoid escaping inner quotes * chore: format test files --------- Co-authored-by: Marcos Sevilla <[email protected]>
1 parent b48d569 commit 04e0847

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/src/commands/dart/commands/dart_test_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class DartTestCommand extends Command<int> {
177177
'exclude-coverage',
178178
help:
179179
'A glob which will be used to exclude files that match from the '
180-
'coverage.',
180+
"coverage (e.g. '**/*.g.dart').",
181181
)
182182
..addOption(
183183
'exclude-tags',

lib/src/commands/test/test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class TestCommand extends Command<int> {
191191
'exclude-coverage',
192192
help:
193193
'A glob which will be used to exclude files that match from the '
194-
'coverage.',
194+
"coverage (e.g. '**/*.g.dart').",
195195
)
196196
..addOption(
197197
'exclude-tags',

site/docs/commands/test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ very_good test [arguments]
2222
-j, --concurrency The number of concurrent test suites run.
2323
(defaults to "4")
2424
-t, --tags Run only tests associated with the specified tags.
25-
--exclude-coverage A glob which will be used to exclude files that match from the coverage.
25+
--exclude-coverage A glob which will be used to exclude files that match from the coverage (e.g. '**/*.g.dart').
2626
-x, --exclude-tags Run only tests that do not have the specified tags.
2727
--min-coverage Whether to enforce a minimum coverage percentage.
2828
--test-randomize-ordering-seed The seed to randomize the execution order of test cases within test files.

test/src/commands/dart/commands/dart_test_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const expectedTestUsage = [
3434
'-j, --concurrency The number of concurrent test suites run. Automatically set to 1 when --platform is specified.\n'
3535
' (defaults to "4")\n'
3636
'-t, --tags Run only tests associated with the specified tags.\n'
37-
' --exclude-coverage A glob which will be used to exclude files that match from the coverage.\n'
37+
" --exclude-coverage A glob which will be used to exclude files that match from the coverage (e.g. '**/*.g.dart').\n"
3838
'-x, --exclude-tags Run only tests that do not have the specified tags.\n'
3939
' --min-coverage Whether to enforce a minimum coverage percentage.\n'
4040
' --test-randomize-ordering-seed The seed to randomize the execution order of test cases within test files.\n'

test/src/commands/test/test_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const expectedTestUsage = [
3434
'-j, --concurrency The number of concurrent test suites run. Automatically set to 1 when --platform is specified.\n'
3535
' (defaults to "4")\n'
3636
'-t, --tags Run only tests associated with the specified tags.\n'
37-
' --exclude-coverage A glob which will be used to exclude files that match from the coverage.\n'
37+
" --exclude-coverage A glob which will be used to exclude files that match from the coverage (e.g. '**/*.g.dart').\n"
3838
'-x, --exclude-tags Run only tests that do not have the specified tags.\n'
3939
' --min-coverage Whether to enforce a minimum coverage percentage.\n'
4040
' --test-randomize-ordering-seed The seed to randomize the execution order of test cases within test files.\n'

0 commit comments

Comments
 (0)