diff --git a/lib/xctool/xctool.rb b/lib/xctool/xctool.rb index 8b852a4..d259bb2 100644 --- a/lib/xctool/xctool.rb +++ b/lib/xctool/xctool.rb @@ -28,7 +28,6 @@ def append_run_tests(test_sdk) -failOnEmptyTestBundles -freshSimulator -parallelize - -simulator iphone CMD @cmd << "-only '#{only}'" if only end @@ -40,7 +39,6 @@ def append_test(test_sdk) -freshSimulator -parallelize -failOnEmptyTestBundles - -simulator iphone CMD @cmd << "-only '#{only}'" if only end diff --git a/spec/xctool_spec.rb b/spec/xctool_spec.rb index 6f8f0f6..0158e69 100644 --- a/spec/xctool_spec.rb +++ b/spec/xctool_spec.rb @@ -96,6 +96,10 @@ subject.as_cmd.should include("test -test-sdk 'sdk2'") subject.as_cmd.should_not include("test -test-sdk 'build_sdk'") end + + it "should not include -simulator" do + subject.test.test.test.as_cmd.should_not match(/-simulator/) + end end describe "#clean" do @@ -135,6 +139,10 @@ it "should append multiple run-tests subcommands with varying test-sdks" do subject.with_test_sdk("test_sdk1").with_test_sdk("test_sdk2").run_tests.as_cmd.should match(/run-tests -test-sdk 'test_sdk1'.*run-tests -test-sdk 'test_sdk2'/) end + + it "should not include -simulator" do + subject.with_test_sdk("sdk").run_tests.as_cmd.should_not match(/-simulator/) + end end describe "#with_all_test_sdks" do