Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Executing UI Tests

No-Jun Park edited this page Jan 29, 2019 · 4 revisions

Prerequisite

  1. Connect Fire TV device via USB or IP, and adb devices should show the device
  2. For safety, remove the existing Firefox apk and test runner apk by: adb uninstall org.mozilla.tv.firefox.debug adb uninstall org.mozilla.tv.firefox.debug.test

Using Gradle (Recommended)

  1. Go into the firefox-tv folder, and run ./gradlew clean
  2. Build apk and execute test by ./gradlew connectedAndroidTest
  3. After the test execution, collect the test report from firefox-tv/app/build/reports/androidTests/connected folder.

Using Android Studio

  1. Open firefox-tv, set the tree view to Android Instrumented Tests
  2. Go to App -> src -> androidTest -> java, right click, and select Run All Tests
Clone this wiki locally