I have developed several test for an application, and I would like to run this application using the command-line. I have read this tutorial; however, I haven't been able to run them. When executing the following command:
xcodebuild test -project MyApplication.xcodeproj -scheme MyApplication -destination 'platform=iOS Simulator,name=iPhone 6'
I am getting the following error:
Testing failed:
Linker command failed with exit code 1 (use -v to see invocation)
** TEST FAILED **
I cannot understand this error, so I wonder if I have to try a different approach or what I am doing wrong. I have to add that I am using KIF for testing.
After checking several options, I have decided to use xctool because this is a recommended tool when the tests have been done using KIF. At the beginning I had some trouble trying to run the test, but after reading other posts I have use the following commands:
For running all tests:
For running all tests in a class:
For running a specific test in a class:
All previous commands worked correctly, and this is what I wanted to do.