I am new to running unit tests using Catch.
I use Catch to run unit tests in my Xcode project. I added a goal to my project that includes my catch files and test cases. Selecting this target and starting from Xcode works fine. Now I am trying to get it to work from the command line, which will be the same as it starts from Jenkins. I have a shell script that contains:
xcodebuild clean install
xcodebuild -target TestApp -configuration 'Debug' -sdk iphonesimulator7.1 CONFIGURATION_BUILD_DIR=TestBuild ONLY_ACTIVE_ARCH=NO
Result:
** INSTALL SUCCEEDED **
Build settings from command line:
CONFIGURATION_BUILD_DIR = TestBuild
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator7.1
--- xcodebuild: WARNING: Configuration 'Release' is not in the project. Building default configuration.
=== BUILD TARGET CreativeSDKTest OF PROJECT CreativeSDKImage WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
** BUILD SUCCEEDED **
But the application does not start in the simulator. Maybe I do not see the obvious, but from all the documents that I read, this should launch the application.
source
share