Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/patrol_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ dependencies:
args: ^2.4.2
ci: ^0.1.0
cli_completion: ^0.4.0
collection: ^1.18.0
collection: any
coverage: ^1.9.0
dispose_scope: ^2.1.0
equatable: ^2.0.5
file: ^7.0.0
glob: ^2.1.2
http: ^1.1.0
mason_logger: ^0.2.10
meta: ^1.10.0
meta: any
package_config: ^2.1.1
path: ^1.8.3
patrol_log: ^0.7.1
Expand Down
7 changes: 3 additions & 4 deletions packages/patrol_cli/test/ios/ios_test_backend_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ void main() {
}) {
test(description, () async {
final target = simulator ? 'iphonesimulator' : 'iphoneos';
if (arch != null) {
arch = '-$arch';
}
final archSuffix = arch != null ? '-$arch' : '';

final xcTestPlan = testPlan != null ? '-$testPlan' : '';

final name = '${scheme}_$xcTestPlan${target}16.2$arch.xctestrun';
final name =
'${scheme}_$xcTestPlan${target}16.2$archSuffix.xctestrun';

fs
.file('build/ios_integ/Build/Products/$name')
Expand Down
19 changes: 19 additions & 0 deletions scripts/flutter_test_repo_test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off

set "root_dir=%CD%"

for %%d in (
"packages\patrol_finders"
"packages\patrol_cli"
) do (
echo Processing %%d
cd "%%d"

call flutter analyze --no-fatal-infos
if errorlevel 1 exit /b 1

call flutter test
if errorlevel 1 exit /b 1

cd "%root_dir%"
)
17 changes: 17 additions & 0 deletions scripts/flutter_test_repo_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# Script invoked by the Flutter customer tests repository.

set -e

# Array of relative directories
dirs=("packages/patrol_finders" "packages/patrol_cli")

# Loop through each directory
for dir in "${dirs[@]}"; do
cd "$dir"

flutter analyze --no-fatal-infos
flutter test

cd - > /dev/null # Return to the previous directory
done