mirror of
https://github.com/flutter/packages.git
synced 2025-06-19 13:38:53 +08:00
[flutter_plugin_tests] Split analyze out of xctest (#4161)
To prep for making a combined command to run native tests across different platforms, rework `xctest`: - Split analyze out into a new `xcode-analyze` command: - Since the analyze step runs a new build over everything with different flags, this is only a small amount slower than the combined version - This makes the logic easier to follow - This allows us to meaningfully report skips, to better notice missing tests. - Add the ability to target specific test bundles (RunnerTests or RunnerUITests) To share code between the commands, this extracts a new `Xcode` helper class. Part of https://github.com/flutter/flutter/issues/84392 and https://github.com/flutter/flutter/issues/86489
This commit is contained in:
@ -24,6 +24,7 @@ import 'publish_plugin_command.dart';
|
||||
import 'pubspec_check_command.dart';
|
||||
import 'test_command.dart';
|
||||
import 'version_check_command.dart';
|
||||
import 'xcode_analyze_command.dart';
|
||||
import 'xctest_command.dart';
|
||||
|
||||
void main(List<String> args) {
|
||||
@ -59,6 +60,7 @@ void main(List<String> args) {
|
||||
..addCommand(PubspecCheckCommand(packagesDir))
|
||||
..addCommand(TestCommand(packagesDir))
|
||||
..addCommand(VersionCheckCommand(packagesDir))
|
||||
..addCommand(XcodeAnalyzeCommand(packagesDir))
|
||||
..addCommand(XCTestCommand(packagesDir));
|
||||
|
||||
commandRunner.run(args).catchError((Object e) {
|
||||
|
Reference in New Issue
Block a user