Skip to main content

Flutter on Sauce Labs

Are your iOS and Android apps built with Flutter? Sauce Labs supports testing Flutter apps on Real Devices.

Flutter is a popular open-source framework created by Google to build natively compiled applications for mobile, web, and desktop from a single codebase. You can run your tests on Sauce Labs to benefit from speed, parallelization, failure analysis, simple setup, and more.

What You'll Need

Choosing a Flutter Integration Driver for Testing

There are two drivers that you can use to test your Flutter app on Sauce Labs: Native Flutter Integration Driver Devices - Android or Appium Flutter Integration Driver.

Appium Flutter Integration Driver

With the Appium Flutter Integration Driver, you can write tests in for both Android and iOS devices using the Appium framework. The Appium Flutter Integration Driver is a wrapper around the Appium framework that allows you to write tests in languages other than Dart, such as Java, Python, Ruby, and more.

Native Flutter Integration Driver

With the Native Flutter Integration Driver Devices, you can write tests in Dart and run them on Sauce Labs. Only Android is currently supported.

iOS Support

We're excited to share that Sauce Labs is actively working on expanding support for Flutter integration tests on iOS. Stay tuned for updates as we continue to develop this capability!

Both drivers are based on Flutter Integration Test. Check the table below to see which driver is best for your testing needs.

Use CasesNative Flutter DriverAppium Flutter Integration Driver
Writing tests in languages other than Dart✔️
Running integration tests for Flutter apps with embedded webview or native view, or existing native apps with embedded Flutter view✔️
Running tests on multiple devices simultaneously✔️
Running integration tests on device farms that offer Appium support✔️
App interactions beyond Flutter’s contextuality (e.g., sending an OTP from a message application)✔️

How to Get Started

After choosing the driver that best fits your testing needs, follow the guides below to set up your Flutter app for testing on Sauce Labs.