Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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