mirror of
https://github.com/flutter/packages.git
synced 2025-06-16 10:15:06 +08:00
[flutter_plugin_tools] Add a summary for successful runs (#4118)
Add a summary to the end of successful runs for everything using the new looping base command, similar to what we do for summarizing failures. This will make it easy to manually check results for PRs that we know should be changing the set of run packages (adding a new package, adding a new test type to a package, adding a new test type to the tool), as well as spot-checking when we see unexpected results (e.g., looking back and why a PR didn't fail CI when we discover that it should have). To support better surfacing skips, this restructures the return value of `runForPackage` to have "skip" as one of the options. As a result of it being a return value, packages that used `printSkip` to indicate that *parts* of the command were being skipped have been changed to no longer do that. Fixes https://github.com/flutter/flutter/issues/85626
This commit is contained in:
@ -151,5 +151,21 @@ void main() {
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
test('Skips when running no tests', () async {
|
||||
createFakePlugin(
|
||||
'plugin1',
|
||||
packagesDir,
|
||||
);
|
||||
|
||||
final List<String> output =
|
||||
await runCapturingPrint(runner, <String>['java-test']);
|
||||
|
||||
expect(
|
||||
output,
|
||||
containsAllInOrder(
|
||||
<Matcher>[contains('SKIPPING: No Java unit tests.')]),
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user