Skip to content

Instantly share code, notes, and snippets.

View alabeduarte's full-sized avatar

Alabê Duarte alabeduarte

View GitHub Profile
@alabeduarte
alabeduarte / run_ios_tests.rb
Last active December 24, 2015 12:29
Script for running iOS unit tests by command line inspired on http://stackoverflow.com/a/10823483/2839823
if ENV['SL_RUN_UNIT_TESTS'] then
launcher_path = "ios-sim"
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}")
environment = {
'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection",
'XCInjectBundle' => test_bundle_path,
'XCInjectBundleInto' => ENV["TEST_HOST"]
}