Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/xctool/xctool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def append_run_tests(test_sdk)
-failOnEmptyTestBundles
-freshSimulator
-parallelize
-simulator iphone
CMD
@cmd << "-only '#{only}'" if only
end
Expand All @@ -40,7 +39,6 @@ def append_test(test_sdk)
-freshSimulator
-parallelize
-failOnEmptyTestBundles
-simulator iphone
CMD
@cmd << "-only '#{only}'" if only
end
Expand Down
8 changes: 8 additions & 0 deletions spec/xctool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down