项目作者: pink-room

项目描述 :
Runs Android tests in Firebase Test Lab 🚀
高级语言: Ruby
项目地址: git://github.com/pink-room/fastlane-plugin-run_tests_firebase_testlab.git
创建时间: 2018-01-30T11:43:52Z
项目社区:https://github.com/pink-room/fastlane-plugin-run_tests_firebase_testlab

开源协议:MIT License

下载


run_tests_firebase_testlab plugin

fastlane Plugin Badge
Build
Status
Gem
Version

Please, read this blog post if you want to know better how to use this plugin.

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-run_tests_firebase_testlab, add it to your project by running:

  1. fastlane add_plugin run_tests_firebase_testlab

About run_tests_firebase_testlab

  • Authenticates with Google Cloud.

  • Runs Android tests in Firebase Test Lab.

  • Fetches the results to a local directory.

  • Deletes the results from firebase bucket if wanted.

Example

Check out the example Fastfile to see how to use this plugin.

Simple usage

  1. run_tests_firebase_testlab(
  2. project_id: "your-firebase-project-id",
  3. devices: [
  4. {
  5. model: "Nexus6P",
  6. version: "27"
  7. }
  8. ]);

Parameters






















































































































ParameterDescriptionOptionalDefault
project_idYour Firebase project idNo-
devicesA list of devices to test the App onNo-
device[model]A device model on which the tests will runNo-
device[version]The Android api version of the deviceNo-
device[locale]The locale to test againstYesen_US
device[orientation]The orientation of the deviceYesportrait
app_apkThe path for your app apkYesapp/build/outputs/apk/debug/
app-debug.apk
android_test_apkThe path for your android test apkYesapp/build/outputs/apk/androidTest/
debug/app-debug-androidTest.apk
timeoutThe max time this test execution can run before it is cancelledYes30m
output_dirThe directory to save the output resultsYesfirebase
bucket_urlThe bucket url where the test results were storedYesParsed automatically from tests output
delete_firebase_filesA flag to control if the firebase files should be deleted from the bucket or notYesfalse
extra_optionsExtra options that you need to pass to the gcloud commandYesempty string
gcloud_service_key_fileFile path containing the gcloud auth keyYesCreated from GCLOUD_SERVICE_KEY environment variable
download_results_from_firebaseA flag to control if the firebase files should be downloaded from the bucket or notYestrue

Run tests for this plugin

To run both the tests, and code style validation, run

  1. rake

To automatically fix many of the styling issues, use

  1. rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.