I have a Flutter project that includes Flavors (Create flavors of a Flutter app | Flutter). We are able to run integration tests using " flutter test integration_test --flavor " locally with successful results, however whenever we run this command on our Bitrise server, we are getting the following error:
00:02 +0: loading /Users/vagrant/git/integration_test/login_test.dart
The Xcode project defines schemes: Flutter Assemble, Runner
00:02 +0 -1: loading /Users/vagrant/git/integration_test/login_test.dart [E]
Error: You must specify a --flavor option to select one of the available schemes.
package:flutter_tools/src/base/common.dart 10:3 throwToolExit
package:flutter_tools/src/ios/xcodeproj.dart 521:7 XcodeProjectInfo.reportFlavorNotFoundAndExit
package:flutter_tools/src/macos/build_macos.dart 123:18 buildMacOS
===== asynchronous gap ===========================
package:flutter_tools/src/macos/macos_device.dart 71:5 MacOSDevice.buildForDevice
===== asynchronous gap ===========================
package:flutter_tools/src/desktop_device.dart 119:7 DesktopDevice.startApp
===== asynchronous gap ===========================
package:flutter_tools/src/test/integration_test_device.dart 55:39 IntegrationTestTestDevice.start
However it’s strange because our project does not include a scheme named “Flutter Assemble”, the current schemes we have are Runner and “free” which is the development flavor we created following the documentation. This was ran on a brand new flutter project, where the only thing we modified was adding in flavors following Flutter’s documentation. It’s
Link to the repo: GitHub - AnthonyDadeWT/flutter_flavor_test_repo: Testing flavors and testing app on CI