mirror of
https://github.com/flutter/packages.git
synced 2025-06-07 03:48:39 +08:00
[flutter_plugin_tools] Include examples in test
(#5453)
This commit is contained in:
@ -36,6 +36,9 @@ class TestCommand extends PackageLoopingCommand {
|
||||
final String description = 'Runs the Dart tests for all packages.\n\n'
|
||||
'This command requires "flutter" to be in your path.';
|
||||
|
||||
@override
|
||||
bool get includeSubpackages => true;
|
||||
|
||||
@override
|
||||
Future<PackageResult> runForPackage(RepositoryPackage package) async {
|
||||
if (!package.directory.childDirectory('test').existsSync()) {
|
||||
@ -88,7 +91,6 @@ class TestCommand extends PackageLoopingCommand {
|
||||
exitCode = await processRunner.runAndStream(
|
||||
'dart',
|
||||
<String>[
|
||||
'pub',
|
||||
'run',
|
||||
if (experiment.isNotEmpty) '--enable-experiment=$experiment',
|
||||
'test',
|
||||
|
Reference in New Issue
Block a user