LoginSignup
5
3

More than 5 years have passed since last update.

AppCodeでQuickを実行する

Posted at

AppCodeでQuickの実行(テスト)ってどうやるんだろう?って調べたのでメモ。
結果的には、XCTestを実行するのと同じようにすれば良いだけでした。

まずはRun - Edit Configurations...を選択し、

スクリーンショット 2017-03-16 12.39.57.png

XCTest/Kiwiの設定を追加します。

スクリーンショット 2017-03-16 12.45.56.png

一応Single instance onlyにしていますが、設定しなくても動きます。

スクリーンショット 2017-03-16 12.46.42.png

Run - Run - '設定した任意の名前'でテストを実行します。

スクリーンショット 2017-03-16 12.56.10.png

失敗する場合はデバイスの設定が漏れている可能性があるので、確認してください。

スクリーンショット 2017-03-16 12.48.58.png

こんな感じで結果が表示されます。

ValidationRuleUserIdTests_swift_-_ValidatorSample_-____mpos_ValidatorSample_.png

任意のテストだけ実行したい場合はテストクラス内でRun 'All in XXXX...'を実行すれば良いです。

スクリーンショット 2017-03-16 13.08.26.png

IntelliJ IDEAに慣れていたので、Xcodeよりはスムーズに扱えて良い感じです。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3