Demo as MVVM + RxSwift
- cd to foder then run the cml bellow. "xcodebuild test -workspace 'ChatApp.xcworkspace' -scheme 'ChatApp' -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.1'"
- Edit Scheme, in Test chosse tab Infor. Select Gather coverage data.
- Run unit from Xcode by Cmd + u, after test finish choose report navigator, chosse lastest test then see the Coverage in the right.
- Run unit test as normal
- After unit test done, notice the device is runnign UI test.