Permalink
Browse files

Adapt tests to the new help message

  • Loading branch information...
1 parent c9e6a4d commit 6629de983775f5c7877a7a8523a5f6187863c98d @ndfred ndfred committed Aug 12, 2013
Showing with 16 additions and 2 deletions.
  1. +16 −2 xctool/xctool-tests/OptionsTests.m
View
18 xctool/xctool-tests/OptionsTests.m
@@ -162,7 +162,14 @@ - (void)testSchemeMustBeValid
@"-scheme", @"TestProject-Library-Bogus",
]]
assertOptionsFailToValidateWithError:
- @"Can't find scheme 'TestProject-Library-Bogus'. Possible schemes include: TestProject-Library"
+ @"Can't find scheme 'TestProject-Library-Bogus'.\n\n"
+ @"Possible schemes include:\n"
+ @" TestProject-Library\n\n"
+ @"TIP: This might happen if you're relying on Xcode to autocreate your schemes\n"
+ @"and your scheme files don't yet exist. xctool, like xcodebuild, isn't able to\n"
+ @"automatically create schemes. We recommend disabling \"Autocreate schemes\"\n"
+ @"in your workspace/project, making sure your existing schemes are marked as\n"
+ @"\"Shared\", and making sure they're checked into source control."
withBuildSettingsFromFile:
TEST_DATA @"TestProject-Library-TestProject-Library-showBuildSettings.txt"];
@@ -180,7 +187,14 @@ - (void)testSchemeMustBeValid
@"-scheme", @"TestProject-Library-Bogus",
]]
assertOptionsFailToValidateWithError:
- @"Can't find scheme 'TestProject-Library-Bogus'. Possible schemes include: TestProject-Library"
+ @"Can't find scheme 'TestProject-Library-Bogus'.\n\n"
+ @"Possible schemes include:\n"
+ @" TestProject-Library\n\n"
+ @"TIP: This might happen if you're relying on Xcode to autocreate your schemes\n"
+ @"and your scheme files don't yet exist. xctool, like xcodebuild, isn't able to\n"
+ @"automatically create schemes. We recommend disabling \"Autocreate schemes\"\n"
+ @"in your workspace/project, making sure your existing schemes are marked as\n"
+ @"\"Shared\", and making sure they're checked into source control."
withBuildSettingsFromFile:
TEST_DATA @"TestWorkspace-Library-TestProject-Library-showBuildSettings.txt"];
}

0 comments on commit 6629de9

Please sign in to comment.