Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wf-adamhei
Created February 6, 2021 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wf-adamhei/7e43449edf20c59aac1a876a04d41cf7 to your computer and use it in GitHub Desktop.
Save wf-adamhei/7e43449edf20c59aac1a876a04d41cf7 to your computer and use it in GitHub Desktop.
desc “Run UI Tests on iPhone 11 Pro”
lane :ui_tests
tests_to_run = options[:only_testing]
clear_derived_data(derived_data_path: derived_data_path)
sh(“xcrun simctl shutdown booted”)
sh(“xcrun simctl erase all”)
sh(“xcrun instruments -w ‘iPhone 11 Pro (13.3) [ -t Blank”)
scan(workspace: “Wealthfront.xcworkspace”,
scheme: “WealthfrontUITests”,
output_style: “basic”,
devices: [“iPhone 11 Pro”],
clean: true,
derived_data_path: derived_data_path,
skip_build: true,
only_testing: "#{tests_to_run}")
sh(“xcrun simctl shutdown booted”)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment