> Documentation index: https://firebase.google.com/docs/test-lab/llms.txt

To test Flutter apps with Firebase Test Lab, you can write Flutter
integration tests, build Android APKs or iOS test zip files, and run as
regular Android instrumentation tests or iOS XCTests.

## Flutter integration test types

Flutter supports three types of tests: unit tests, widget tests, and
integration tests. A *unit test* verifies the behavior of a method or class.
A *widget test* verifies the behavior of Flutter widgets without running the
app itself. An *integration test*, also called end-to-end testing or GUI
testing, runs the full app.

To learn more about integration tests, see [Flutter integration testing](https://docs.flutter.dev/testing/integration-tests).

## Write Flutter integration tests

To learn how to write integration tests, see the [project setup](https://docs.flutter.dev/testing/integration-tests#project-setup)
section of the Flutter integration tests documentation. Optionally, you can
follow [running using Flutter command](https://docs.flutter.dev/testing/integration-tests#running-using-the-flutter-command)
to run and verify the tests locally.

## Test on Test Lab

You can use Test Lab with both Android and iOS targets.

### Android setup

Follow the instructions in the
[Android Device Testing](https://github.com/flutter/flutter/tree/main/packages/integration_test#android-device-testing)
section of the README.

### iOS setup

Follow the instructions in the
[iOS Device Testing](https://github.com/flutter/flutter/tree/main/packages/integration_test#ios-device-testing)
section of the README.

## Robo test support

[Robo tests](https://firebase.google.com/docs/test-lab/android/robo-ux-test.md.txt) don't natively support
Flutter. To improve crawling of your app, use [Robo scripts](https://firebase.google.com/docs/test-lab/android/run-robo-scripts.md.txt),
which are tests that automate manual QA tasks for mobile apps, and enable
continuous integration (CI) and pre-launch testing strategies.
For example, to control Robo behavior in a more precise and robust way, you can
use clicks with [visionText](https://firebase.google.com/docs/test-lab/android/robo-scripts-reference.md.txt#click).

## Analyze test results

You can run Flutter integration tests as an Android instrumentation test or an
iOS XCTest. To analyze the result of an integration test, see the
documentation for [Android](https://firebase.google.com/docs/test-lab/android/analyzing-results.md.txt)
and [iOS](https://firebase.google.com/docs/test-lab/ios/analyzing-results.md.txt),
depending on your platform.

## Limitations

Test timing information for individual test cases is not available, which means
that features like test case duration and videos for individual test cases
don't work as expected.

## Troubleshooting

If you encounter issues, check the [public issue tracker for integration tests](https://github.com/flutter/flutter/issues?q=is:open+is:issue+label:%22f:+integration_test%22).

If you encounter a new issue caused by the integration test framework,
file a new issue in the public issue tracker following the guidance in
[Creating useful bug reports](https://docs.flutter.dev/resources/bug-reports).