RSpecãCucumberã®ã³ãã³ããå®è¡ããã©ããã¼ãä½ãã¾ãã
autotest"ã ã"ã§ã¯ãã£ããããªãã¨ãããã¹ã好ãã®Rubyistã®ã¿ãªãã¾ã¸ã
http://github.com/moro/spe_cuke
ã³ã¼ããæ¸ããªããã¢ãªã¢ãªã¨ãã¹ããå®è¡ãããå ´åãrake specã§å ¨ä½ãæµãã®ãããªãã«ããã¡ã¤ã«åä½ã¨ãExample/Scenarioåä½ã¨ãã§ãã¹ããå®è¡ããããã¨ãããã¾ããã?ãããããã¨ãã«ã¯èªä½ã®vimã¹ã¯ãªãããªã©ã§ãã¾ããã£ããããã¨æãã¾ãããæè¿ã¯ããããªç°å¢ãå¢ãã¦ãã¦å¤§å¤ã ã£ãããã¾ããã?
æ°ã
- ãã®ããã¸ã§ã¯ãã¯bundler使ã£ã¦ãã®ã§bundle execããã
- ãã£ã¡ã¯å¤ãRailsã ããbundlerãªãã!!
- Rails3.0ãªã®ã§ãã³ãã³ãåãspecãããªãã¦rspecãªãã§ããã©ã
- 1.9ã¨1.8å ±åããããã¨ãã¦.gemrcã«--format-executableã¤ãããspecãspec18ã«ãªã£ã¦æ³£ããã
- bundle18 exec rspec ... ã¨ãé·ããã
ãªã©ãªã©ã
ã¨ããããã§ããã®ã¸ããéçºè
ã(ã¨ããããã¹ã¯ãªããåãããä»ã®æ²»å
·ã)æ°ã«ããªãã¦ããããã«ãåãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ã³ãã³ããå®è¡ããã©ããã¼ã³ãã³ããä½ãã¾ããã-lã§è¡çªå·ãæå®ããã¨ãåä½ã§æµãããããã¾ãã
ã¡ãªã¿ã«ã-rãã¤ããã¨bundle exec rake spec SPEC= ã¨ãå§ãããã§ãããrakeã®ä¾åã¿ã¹ã¯ãã¡ããã¨ãããªã¼ãã¼ãããã®é¢ä¿ã§ã¡ãã£ã¨éãã®ã§ããªãã·ã§ã³ã«ãã¦ãã¾ãã
使ãæ¹ããæ©è½ãªããã¯GitHubã¸ã©ãã(é å¼µã£ã¦è±èªã®READMEãæ¸ããã®ã§èªãã§!!!)ã
以ä¸ã宣ä¼ã§ããã