ãªã¼ãã³ã»ããã¼2017@岡山
Karmaã使ããã¨ã§ããã³ãã¨ã³ãã®åä½ãã¹ãã楽ãããã¤æ©è½çã«è¡ããã¨ãã§ãã¾ãã ã¹ããããéãã¦å°ãã¥ã¤ç解ã§ããããã«å·çãã¾ããã ã¾ããæå¾ã«éè¦ã ããã¨æãããè£è¶³å 容ãè¨è¼ãã¾ããã Karmaã®å°å ¥ã«ä¸å½¹è²·ããã°å¹¸ãã§ãã ãã¹ãå ¨ä½ã®æµãã«ã¤ãã¦ã¯ä»¥åæ¸ããè¨äºããã³ãã¨ã³ãã«ãã¹ããå°å ¥ãåç §ãã¦ãã ããã Karmaã¨ã¯ ãã©ã¦ã¶ä¸ã§ åä½ãã¹ããå®è¡ããããã®ãã¹ãã©ã³ãã¼ã§ãã ãã¹ããå®è¡ããã ãã§ãªããã¡ã¤ã«ã®å¤æ´ç£è¦ãçµæã®ã¬ãã¼ããåºåãã¦ããããã¨åä½ãã¹ãã«å¿ è¦ãªæ©è½ãä¸éãããã£ã¦ãã¾ãã ç¹å®ã®ãã¬ã¼ã ã¯ã¼ã ã«ä¾åãã¦ãããæ±ç¨çã«ä½¿ãããã¼ã«ã§ããã©ã°ã¤ã³ã使ã£ãæ©è½ã®æ¡å¼µãå¼·åã§ãã åæ Nodejs,npm,chromeãå°å ¥æ¸ã¿ã§ããã㨠æµã Karmaã¯4ã¤ã®å¤§ããªæ©è½ï¼ãã©ã°ã¤ã³ï¼ãåå¨ãã¾ãã Step 3 ã Step 6
iPhoneã®Unit Testãã¬ã¼ã ã¯ã¼ã¯iUnitTestãå ¬éãã¾ãããä¼ç¤¾ã¨ãã¦å ¬éããã®ã§ãã¬ã¹ãªãªã¼ã¹ãªããåºããããã¦ã¾ãã http://github.com/katsuyoshi/iunittest/tree/master ã¤ã³ã¹ãã¼ã«ã¯ããã£ã¦ç°¡åã§ãã½ã¼ã¹ä¸å¼ãæã£ã¦æ¥ãããã®ãã£ã¬ã¯ããªã§'sudo ./setup'ãå®è¡ããã ãã§ãã Xcodeã«iUniTestã¢ããªã±ã¼ã·ã§ã³ã®ãã³ãã¬ã¼ãã追å ãããã®ã§ããããããã¹ãç¨ã®ããã¸ã§ã¯ããä½æãã¾ãã*1 ãã¹ãç¨ã®ã¯ã©ã¹ãã³ãã¬ã¼ãã追å ããã¦ããã®ã§ãããããimportããããã¹ãç¨ã«è¨å®ããããã¨ããäºã¯å¿ è¦ããã¾ããã ãã¹ãã¯IUTAssertion.hã«æ¸ãã¦ã"ASSERT"ããå§ã¾ããã¯ãã使ç¨ãã¾ãã ã¡ãã»ã¼ã¸ãå ¥ããäºãæ³å®ãã¦ã¾ãããå®è£ ãã¦ã¾ãããexceptionãæ±ãç©ãããã¾
æºå â DBãã¼ãã«ã¯ä¸è¨ã使ã(ãã¼ãã«åãã«ã©ã åã¯Railsã®è¦ç´ã«å¾ãï¼ -- books create table books ( id integer primary key, title varchar(255) not null, description text, updated_at datetime ); ãã®ãã¼ãã«ã¹ãã¼ããdb/schema.sqlã¨ãã¦ä¿åããä¸è¨ã§ãã¼ã¿ãã¼ã¹ãä½æãã(SQLiteã使ç¨ï¼ # cd db # sqlite3 gentest.db < schema.sql æ¥ç¶æ å ±ãconfig/database.ymlã«è¨è¼ãã development: adapter: sqlite3 dbfile: db/gentest.db ã¢ãã«ã¯ã©ã¹(Book)ã®ã¹ã±ã«ãã³ãä½æãã # ruby script/generate model
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message I did a basic rails 2.1 command and made a basic model and ran the unit tests with rake, I get this error: LoadError: no such file to load â test_helper I went back and compared my old unit tests from other projects to the one that was generated, this is what I fo
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}