Skip to content

Commit

Permalink
remove build_install and emu_launch methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjar7 committed Dec 4, 2024
1 parent 4347523 commit 5049f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@ def self.run(params)
cold_boot: params[:emulator_cold_boot],
additional_options: params[:emulator_additional_options]
)
build_and_install_android_app(params)

UI.message("Running Maestro tests on Android...")
sh("maestro test #{params[:maestro_flows]}")

UI.success("Finished Maestro tests on Android.")
end

def self.build_and_install_android_app(params)
UI.message("Building Android app...")
sh("./gradlew assembleDebug")
other_action.gradle(task: "assembleDebug")

apk_path = Dir["app/build/outputs/apk/debug/app-debug.apk"].first

Expand All @@ -36,6 +28,11 @@ def self.build_and_install_android_app(params)
UI.message("Found APK file at: #{apk_path}")
sh("adb install -r '#{apk_path}'")
UI.success("APK installed on Android emulator.")

UI.message("Running Maestro tests on Android...")
sh("maestro test #{params[:maestro_flows]}")

UI.success("Finished Maestro tests on Android.")
end

def self.description
Expand Down
2 changes: 1 addition & 1 deletion spec/maestro_orchestration_action_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe Fastlane::Actions::MaestroOrchestrationAction do
describe Fastlane::Actions::MaestroOrchestrationIosAction do
describe '#run' do
it 'prints a message' do
expect(Fastlane::UI).to receive(:message).with("The maestro_orchestration plugin is working!")
Expand Down

0 comments on commit 5049f37

Please sign in to comment.