AzimoLabs / fastlane-plugin-automated-test-emulator-run

Plugin dedicated for Android platform. Wraps gradle task/shell command used for launching instrumented tests. Provides start of as many AVDs with various configs as needed before test run, waits for boot, kills emulators and deletes them from hdd after tests are finished or disturbed.
MIT License
113 stars 48 forks source link

Unable to read AVD_setup.json. Check JSON file structure or file path. #21

Open Xavbm opened 6 years ago

Xavbm commented 6 years ago

Error : Unable to read AVD_setup.json. Check JSON file structure or file path.

I'm trying to use the plugin, but it seems that my path is always wrong. I tried different paths and move the config file, but i'm always having the same error.

Exemple code automated_test_emulator_run( AVD_setup_path: "~/Projets/projectName/fastlane/AVD_configs/AVD_setup.json", gradle_task: "connectedAndroidTest" )

Here my config. json { "avd_list": [ { "avd_name": "Test-Emulator-API23", "create_avd_target": "android-23", "create_avd_abi": "google_apis/x86", "create_avd_hardware_config_filepath": "", "create_avd_additional_options": "",

      "launch_avd_snapshot_filepath": "",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_port": "",
      "launch_avd_additional_options": ""
    }
]

}

FisherKK commented 6 years ago

Hello @Xavbm,

Are you sure that you didn't do typo in your path? Like "Projets" instead of "Projects"? Try to navigate to it via cd form terminal like:

cd ~/Projets/projectName/fastlane/AVD_configs/
Xavbm commented 6 years ago

Thank you for your quick answer, but yeah i'm sure, projets is in french. I tried to copy past from terminal and didnt work

barchinsky commented 4 years ago

@FisherKK , did I get it right that only absolute path to config file supported? So relative path like "./config/AVD_setup.json" will not be found. Under relative I mean relative to fastlane file.

Sahara150 commented 1 year ago

@FisherKK Is @barchinsky correct? If this is still the case, please support using relative paths of where fastlane is running. This makes working with the plugin in a CI pretty horrible, cause you're not supposed to know much about the underlying file structure.