# Running device tests with Firebase for multiplatform apps

You can run native device tests for Flutter and React Native apps using Bitrise's device testing solution.

## Testing the iOS app

1. Add tests using the [XCTest](https://developer.apple.com/documentation/xctest) framework to the iOS app of the project.
1. [Build your app for testing](/bitrise-ci/testing/testing-ios-apps/building-an-ios-app-for-testing) with the [**Xcode Build for testing for iOS**](https://github.com/bitrise-steplib/steps-xcode-build-for-test) Step.

   Make sure that the **Project path** input of the Step points to the `.xcodeproj` or `.xcworkspace` file of your project. You can find these in the `iOS` folder. If you used automatic configuration to add your React Native app to Bitrise, you don't need to modify the default value of the input ($BITRISE_PROJECT_PATH.
1. Run your device tests with the [**iOS Device Testing**](https://github.com/bitrise-steplib/steps-virtual-device-testing-for-ios) Step.

   For detailed information on configuring an iOS app for device testing, see [Running device tests for iOS apps](/bitrise-ci/testing/device-testing-with-firebase/device-testing-for-ios#running-device-tests-with-firebase-for-ios-apps).

## Testing the Android app

You can run robo-, instrumentation- and gameloop tests using the [**Virtual Device Testing for Android**](https://github.com/bitrise-steplib/steps-virtual-device-testing-for-android) Step. However, one instance of the Step can only run one type of test. If you need to run multiple test types, you need multiple instances of the Step.

1. Add tests to the Android app of the project.
1. Build the app for UI testing with the [**Android Build for UI Testing**](https://github.com/bitrise-steplib/bitrise-step-android-build-for-ui-testing) Step.

   Make sure the **Project Location** input of the Step points to the root directory of the Android app. For example, `./android`.
1. Run your device tests with the [**Virtual Device Testing for Android**](https://github.com/bitrise-steplib/steps-virtual-device-testing-for-android) Step.

   For detailed information on configuring an Android app for device testing, see [Device testing for Android](/bitrise-ci/testing/device-testing-with-firebase/device-testing-for-android).
