Standardize tool test shard selection (#78636)
This commit is contained in:
parent
6a4dd4cfb4
commit
c90cd65a38
@ -106,8 +106,8 @@ Future<void> main(List<String> args) async {
|
|||||||
'framework_coverage': _runFrameworkCoverage,
|
'framework_coverage': _runFrameworkCoverage,
|
||||||
'framework_tests': _runFrameworkTests,
|
'framework_tests': _runFrameworkTests,
|
||||||
'tool_tests': _runToolTests,
|
'tool_tests': _runToolTests,
|
||||||
|
'web_tool_tests': _runToolTests,
|
||||||
'tool_integration_tests': _runIntegrationToolTests,
|
'tool_integration_tests': _runIntegrationToolTests,
|
||||||
'web_tool_tests': _runWebToolTests,
|
|
||||||
'web_tests': _runWebUnitTests,
|
'web_tests': _runWebUnitTests,
|
||||||
'web_integration_tests': _runWebIntegrationTests,
|
'web_integration_tests': _runWebIntegrationTests,
|
||||||
'web_long_running_tests': _runWebLongRunningTests,
|
'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 {
|
Future<void> _runIntegrationToolTests() async {
|
||||||
final String toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools');
|
final String toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools');
|
||||||
final List<String> allTests = Directory(path.join(toolsPath, 'test', 'integration.shard'))
|
final List<String> allTests = Directory(path.join(toolsPath, 'test', 'integration.shard'))
|
||||||
@ -292,31 +302,10 @@ Future<void> _runToolTests() async {
|
|||||||
await selectSubshard(<String, ShardRunner>{
|
await selectSubshard(<String, ShardRunner>{
|
||||||
'general': _runGeneralToolTests,
|
'general': _runGeneralToolTests,
|
||||||
'commands': _runCommandsToolTests,
|
'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
|
/// Verifies that APK, and IPA (if on macOS) builds the examples apps
|
||||||
/// without crashing. It does not actually launch the apps. That happens later
|
/// 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
|
/// in the devicelab. This is just a smoke-test. In particular, this will verify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user