[flutter_plugin_tools] Include examples in test (#5453)

This commit is contained in:
stuartmorgan
2022-05-03 00:44:10 -04:00
committed by GitHub
parent fbf53f284b
commit 1186d6831f
4 changed files with 53 additions and 6 deletions

View File

@ -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',