Class: FirebaseTestLabIntegration::Helper::IntegrationHelper
- Inherits:
-
Object
- Object
- FirebaseTestLabIntegration::Helper::IntegrationHelper
- Defined in:
- lib/fastlane/plugin/firebase_test_lab_integration/helper/integration_helper.rb
Instance Method Summary collapse
-
#initialize(platform) ⇒ IntegrationHelper
constructor
A new instance of IntegrationHelper.
-
#run(params) ⇒ Object
Performs the actual test run.
Constructor Details
#initialize(platform) ⇒ IntegrationHelper
Returns a new instance of IntegrationHelper.
9 10 11 |
# File 'lib/fastlane/plugin/firebase_test_lab_integration/helper/integration_helper.rb', line 9 def initialize(platform) @platform = platform end |
Instance Method Details
#run(params) ⇒ Object
Performs the actual test run
14 15 16 17 18 19 20 |
# File 'lib/fastlane/plugin/firebase_test_lab_integration/helper/integration_helper.rb', line 14 def run(params) gcloud_helper = ::FirebaseTestLabIntegration::Helper::GcloudHelper.new(@platform, params[:gcp_project], params[:gcp_key_file], params[:gcloud_channel], params[:gcloud_results_bucket], params[:gcloud_results_dir], params[:results_log_file_name], params[:results_download_dir], params[:timeout], params[:quiet]) gcloud_helper.run_tests(params[:type], params[:app_path], params[:app_path_test], params[:devices], params[:extra_options]) json = get_test_outcome(params[:results_log_file_name]) gcloud_helper.download_test_results post_github_comment(json, gcloud_helper, params) end |