Run any test on app with providing existing flavor through "--flavor "
try to access the flavor value that you pass in that test using appFlavor
you will get null instead of value of flavor you passed
Actual results
When i run my test on android using command below flutter's default constant appFlavor is NULL but it should be initialised with value that we pass. On iOS works like it should. Only happening on android.
here is my command to run test
patrol test -t integration_test/main_screen_test.dart --flavor dev --dart-define-from-file=.env.dev.json -d "emulator-5554" -v
Logs
No response
Patrol version
patrol: 3.9.0
Patrol Doctor output
Patrol Doctor output
```
Patrol doctor:
Patrol CLI version: 2.8.1
Flutter command: flutter
Flutter 3.22.1 • channel stable
Android:
• Program adb found in /Users/gair/Library/Android/sdk/platform-tools/adb
• Env var $ANDROID_HOME set to /Users/gair/Library/Android/sdk
iOS / macOS:
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller
```
Flutter Doctor output
Flutter Doctor output
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.1, on macOS 14.2.1 23C71 darwin-arm64, locale en-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.5)
[✓] VS Code (version 1.91.0)
[✓] Connected device (6 available)
! Error: Browsing on the local area network for s’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
[✓] Network resources
• No issues found!
```
Steps to reproduce
on android emulator
Actual results
When i run my test on android using command below flutter's default constant appFlavor is NULL but it should be initialised with value that we pass. On iOS works like it should. Only happening on android. here is my command to run test
patrol test -t integration_test/main_screen_test.dart --flavor dev --dart-define-from-file=.env.dev.json -d "emulator-5554" -v
Logs
No response
Patrol version
patrol: 3.9.0
Patrol Doctor output
Patrol Doctor output
``` Patrol doctor: Patrol CLI version: 2.8.1 Flutter command: flutter Flutter 3.22.1 • channel stable Android: • Program adb found in /Users/gair/Library/Android/sdk/platform-tools/adb • Env var $ANDROID_HOME set to /Users/gair/Library/Android/sdk iOS / macOS: • Program xcodebuild found in /usr/bin/xcodebuild • Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ```Flutter Doctor output
Flutter Doctor output
``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.1, on macOS 14.2.1 23C71 darwin-arm64, locale en-RU) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] IntelliJ IDEA Ultimate Edition (version 2023.1.5) [✓] VS Code (version 1.91.0) [✓] Connected device (6 available) ! Error: Browsing on the local area network for s’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27) [✓] Network resources • No issues found! ```