ãªã«ãã æ°ããããã¸ã§ã¯ãä½ããã³ã«ãã¤ãæ§ç¯æé ãå¿ãã¦ãã®ã§ã¡ã¢ã ãã¾ãã§ã³ã³ã½ã¼ã«ããã®ãã¹ãå®è¡ï¼Jenkinsã¨ã®çµ±åãç®çï¼ã®ããæ¹ãæ¸ããã 対象è Objective-Cã«ããiOSéçºè CocoaPodsãç¥ã£ã¦ããã»ä½¿ããã GHUnitãç¥ã£ã¦ããã»ä½¿ããã (Jenkinsã§CIããã)âå¿ é ãããªã æ¤è¨¼ç°å¢ 2012å¹´12æ9æ¥æç¹ã§ææ°ã®ãã®ã Mac OS X 10.8.2 Xcode 4.5.2 CocoaPods 0.16.0 æé 1. Xcodeã§ããã¸ã§ã¯ãä½æ Unit Testã¯GHUnitã使ãã®ã§ä¸è¦ã ãã®ããã¥ã¡ã³ãã§ã¯ MyProject ã¨ããã 2. æ°ããã¿ã¼ã²ããä½æ ããã¸ã§ã¯ãè¨å®ãéãã¦ããã¹ãå®è¡ç¨ã®ã¿ã¼ã²ãããä½æããã ã¿ã¼ã²ããã®ç¨®é¡ã¯iOSã®Empty Applicationãåå㯠Tests ã«ãã¦ã
ã¾ãããã¹ããæ¸ãã æè¿ iOS çéã®ãã¹ãã®ãã¹ããã©ã¯ãã£ã¹ã«ã¤ãã¦èª¿ã¹ã¦ããã®ã§ãããããã§ç®ã«çã¾ã£ãæç« ãããã®ã§ã¾ããããç´¹ä»ãã¾ãã How comfortable are you on a bike without a helmet? Writing code without tests is like riding a bike without a helmet. You might feel free and indestructible for now, but one day youâll fall and itâs going to hurt. http://paulsolt.com/2010/11/iphone-unit-testing-explained-part-1/ ãã«ã¡ãããä»ããã«èªè»¢è»ãæ¼ãã®ã¯ã¨ã¦ãå¿«é©ã§ãããã§ãããµã¨ããããæ¥ã«åãè¿ãã®
åå ã¯SenTestKitãç¨ãã¦Jenkinsä¸ã§åä½ãã¹ãã®èªåå®è¡ãè¡ãã¾ãããä»åã¯GHUnitã使ã£ãåä½ãã¹ãã®èªåå®è¡ã«ãã£ã¬ã³ã¸ãã¦ã¿ããã¨æãã¾ããã¾ãã¤ãã§ã¨ãã£ã¦ã¯ä½ã§ãããåä½ãã¹ãæã«å¿ è¦ã«ãªã£ã¦ããã¢ãã¯ãä½æããããã®ã©ã¤ãã©ãªOCMockãåæã«å°å ¥ãã¦ã¿ããã¨æãã¾ãã â ãªãGHUnitã使ãã®ã GHUnitã使ããã¨ã§ãSenTestingKitã¨æ¯ã¹ã¦ä»¥ä¸ã®ãããªã¡ãªãããå¾ããã¾ãã éåæå¦çã®ãã¹ããè¡ãããã®ä»çµã¿ãç¨æããã¦ããï¼GHAsyncTestCaseï¼ãããSenTestingKitãªããä»ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ãããã¨ããã¨å¤§å¤éª¨ãæãã¾ãã .appå½¢å¼ï¼è¦ããã«å®éã®iOSã¢ããªã±ã¼ã·ã§ã³ï¼ã§ãã¹ããå®è¡ãããããUIApplicationãUIWindowã¨ãã£ãUIã³ã³ãã¼ãã³ãã使ãã¯ã©ã¹ã®ãã¹ããå¯è½ã«ãª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}