Unverified Commit c90cd65a authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Standardize tool test shard selection (#78636)

parent 6a4dd4cf
......@@ -106,8 +106,8 @@ Future<void> main(List<String> args) async {
'framework_coverage': _runFrameworkCoverage,
'framework_tests': _runFrameworkTests,
'tool_tests': _runToolTests,
'web_tool_tests': _runToolTests,
'tool_integration_tests': _runIntegrationToolTests,
'web_tool_tests': _runWebToolTests,
'web_tests': _runWebUnitTests,
'web_integration_tests': _runWebIntegrationTests,
'web_long_running_tests': _runWebLongRunningTests,
......@@ -274,6 +274,16 @@ Future<void> _runCommandsToolTests() async {
);
}
Future<void> _runWebToolTests() async {
await _pubRunTest(
path.join(flutterRoot, 'packages', 'flutter_tools'),
forceSingleCore: true,
testPaths: <String>[path.join('test', 'web.shard')],
enableFlutterToolAsserts: true,
perTestTimeout: const Duration(minutes: 3),
);
}
Future<void> _runIntegrationToolTests() async {
final String toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools');
final List<String> allTests = Directory(path.join(toolsPath, 'test', 'integration.shard'))
......@@ -292,31 +302,10 @@ Future<void> _runToolTests() async {
await selectSubshard(<String, ShardRunner>{
'general': _runGeneralToolTests,
'commands': _runCommandsToolTests,
'web': _runWebToolTests,
});
}
Future<void> _runWebToolTests() async {
const String kDotShard = '.shard';
const String kWeb = 'web';
const String kTest = 'test';
final String toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools');
final Map<String, ShardRunner> subshards = <String, ShardRunner>{
kWeb:
() async {
await _pubRunTest(
toolsPath,
forceSingleCore: true,
testPaths: <String>[path.join(kTest, '$kWeb$kDotShard', '')],
enableFlutterToolAsserts: true,
perTestTimeout: const Duration(minutes: 3),
);
}
};
await selectSubshard(subshards);
}
/// Verifies that APK, and IPA (if on macOS) builds the examples apps
/// without crashing. It does not actually launch the apps. That happens later
/// in the devicelab. This is just a smoke-test. In particular, this will verify
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment