Running KIF tests from command line

584 views
Skip to first unread message

Chen Yingliu

unread,
Feb 3, 2014, 4:12:06 PM2/3/14
to kif-fr...@googlegroups.com
Does anyone know how to run KIF tests from command line?

I am looking for some tools for running iOS integration tests on real device other than uiautomation. The problem with uiautomation is:
1. It can't run tests on more than one device because we can only run one "instrument" process at the same time.
2. It is a really black box testing but for performance tests we want more instrumentation.
3. Since it is a black box testing, we can't even check or kill app's process. This is pretty annoying and our work around is to just re-install the app.

I've tried KIF and it meets our requirements quite well. However I still have some issue: If I just want to run some test class/method,  I can only do it using Xcode, and Xcode will try to re-build and re-install the main app before starting tests. This is unacceptable since our app is pretty big and re-build and re-install takes more than 10 minutes.

So I am wondering if we have any command line tools to run KIF tests which:
1. Can specify which test class/method to run.
2. Only re-install apps or push test bundle if requested.

Thanks!

Artem Durandin

unread,
Feb 4, 2014, 3:55:53 AM2/4/14
to kif-fr...@googlegroups.com
XCTool will be suitable for your needs:

https://github.com/facebook/xctool

Chen Yingliu

unread,
Feb 4, 2014, 3:02:17 PM2/4/14
to kif-fr...@googlegroups.com
xctool only support running tests on simulator but we need to run those tests running on devices to measure performance, see

Artem Durandin

unread,
Feb 5, 2014, 3:59:09 AM2/5/14
to kif-fr...@googlegroups.com
Okay then. You can try xcodebuild it will be work for you. For running specific class/method you need to turn off it in your scheme settings.

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html

abhinavn

unread,
Mar 3, 2014, 8:58:39 PM3/3/14
to kif-fr...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages