Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fastlane passing parameters to plugin

I am using Fastlane plugin automated_test_emulator_run

automated_test_emulator_run(
    AVD_setup_path: "~/<path to your avd setup>/AVD_setup.json",
//some more tasks
  )

now trying to run this same via command line

fastlane automated_test_emulator_run AVD_setup_path:avd.json

but getting eror

[!] Could not find 'automated_test_emulator_run'. Available lanes: test

any hint to use any plugin and pass setup parameters for that?

like image 944
user2299735 Avatar asked Oct 29 '25 14:10

user2299735


1 Answers

I haven't done exactly this but have done something similar so following should work I believe:

lane :your_emulator_lane do |options|
    avdSetupPath = options[:AVD_setup_path]

    automated_test_emulator_run(
        AVD_setup_path: avdSetupPath,
    )

end

Would then call

fastlane your_emulator_lane AVD_setup_path:avd.json
like image 160
John O'Reilly Avatar answered Oct 31 '25 03:10

John O'Reilly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!