您可以通过 xcodebuild 运行特定的测试用例!
您需要导入 4 个文件。
$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" GCC_PREPROCESSOR_DEFINITIONS='DEBUG=1 TEST_ONLY=\"TestCaseSample1\"'
$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" GCC_PREPROCESSOR_DEFINITIONS='DEBUG=1 TEST_ONLY=\"TestCaseSample1/testExample1\"'
$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0"