How to generate some report for test cases result in unit test?

203 Views Asked by At

In my application I am using KIF framework for testing. Now for all test cases in my class I want to generated file with all cases and their result. How to achieve this?

1

There are 1 best solutions below

0
Ganesh Manoj On BEST ANSWER

open Terminal run the following command

sudo install ocunit2junit

then move project folder (cd project path) and run following command

xcodebuild test -workspace appName.xcworkspace -scheme schemName -destination 'platform=iOS,id=deviceID' 2>&1|ocunit2junit