mirror of
https://github.com/flutter/packages.git
synced 2025-06-23 00:25:38 +08:00
[tools] Recognize Pigeon tests in version-check (#6813)
Pigeon has an usual test structure since it generates test code to run in a dummy plugin; add that structure to the list of recognized tests so that changes to its platform tests won't be flagged by `version-check`.
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
## NEXT
|
## 13.1
|
||||||
|
|
||||||
|
* Updates `version-check` to recognize Pigeon's platform test structure.
|
||||||
* Pins `package:git` dependency to `2.0.x` until `dart >=2.18.0` becomes our
|
* Pins `package:git` dependency to `2.0.x` until `dart >=2.18.0` becomes our
|
||||||
oldest legacy.
|
oldest legacy.
|
||||||
* Updates test mocks.
|
* Updates test mocks.
|
||||||
|
@ -110,7 +110,9 @@ bool _isTestChange(List<String> pathComponents) {
|
|||||||
pathComponents.contains('integration_test') ||
|
pathComponents.contains('integration_test') ||
|
||||||
pathComponents.contains('androidTest') ||
|
pathComponents.contains('androidTest') ||
|
||||||
pathComponents.contains('RunnerTests') ||
|
pathComponents.contains('RunnerTests') ||
|
||||||
pathComponents.contains('RunnerUITests');
|
pathComponents.contains('RunnerUITests') ||
|
||||||
|
// Pigeon's custom platform tests.
|
||||||
|
pathComponents.first == 'platform_tests';
|
||||||
}
|
}
|
||||||
|
|
||||||
// True if the given file is an example file other than the one that will be
|
// True if the given file is an example file other than the one that will be
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: flutter_plugin_tools
|
name: flutter_plugin_tools
|
||||||
description: Productivity utils for flutter/plugins and flutter/packages
|
description: Productivity utils for flutter/plugins and flutter/packages
|
||||||
repository: https://github.com/flutter/plugins/tree/main/script/tool
|
repository: https://github.com/flutter/plugins/tree/main/script/tool
|
||||||
version: 0.13.0
|
version: 0.13.1
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
args: ^2.1.0
|
args: ^2.1.0
|
||||||
|
@ -80,6 +80,9 @@ void main() {
|
|||||||
'packages/a_plugin/example/macos/Runner.xcodeproj/project.pbxproj',
|
'packages/a_plugin/example/macos/Runner.xcodeproj/project.pbxproj',
|
||||||
'packages/a_plugin/example/windows/CMakeLists.txt',
|
'packages/a_plugin/example/windows/CMakeLists.txt',
|
||||||
'packages/a_plugin/example/pubspec.yaml',
|
'packages/a_plugin/example/pubspec.yaml',
|
||||||
|
// Pigeon platform tests, which have an unusual structure.
|
||||||
|
'packages/a_plugin/platform_tests/shared_test_plugin_code/lib/integration_tests.dart',
|
||||||
|
'packages/a_plugin/platform_tests/test_plugin/windows/test_plugin.cpp',
|
||||||
];
|
];
|
||||||
|
|
||||||
final PackageChangeState state = await checkPackageChangeState(package,
|
final PackageChangeState state = await checkPackageChangeState(package,
|
||||||
|
Reference in New Issue
Block a user