rubygems-test 㧠rubygems ã¤ã³ã¹ãã¼ã«æã«ãã¹ããè¡ã
Ruby ã®ããã±ã¼ã¸ã³ã°ããã¼ã¸ã£ã® rubygems 㨠Perl ã® CPAN ã¨æ¯è¼ãã¦ãrubygems ã®æ®å¿µãªã¨ããã®ä¸ã¤ã«ãã¤ã³ã¹ãã¼ã«æã«ãã¹ããè¡ããªãããã¨ãæãããã¾ããrubygems 㯠gem install package ã§ä¸çºã§å
¥ããããäºã¯ä¾¿å©ãªãã§ãããã¤ã³ã¹ãã¼ã«æã«ãã¹ããè¡ãããªããããå®éã«ãã®ç°å¢ã§æ£ããæåãããã¨ã¯éãã¾ãããã¾ããrubygems ã§å
¥ããããã±ã¼ã¸ã®ãã¹ãæ¹æ³ãã³ãã³ãä¸çºã§ç°¡åã«ã§ããããã§ã¯ãªãã®ã§ããã©ãããã£ãããã¾ãããªã«ããåé¡ãªã®ããã¤ã³ã¹ãã¼ã«æã«ãã¹ããè¡ãããªããããéçºè
ããã¹ãããã¼ããã¡ãã«ãªã£ã¦ãã¾ãã¾ã*1ã
æè¿ rubygems ã§ã CPAN ã¨åãããã«ãã¤ã³ã¹ãã¼ã«æã«ãã¹ãå¯è½ãªããã±ã¼ã¸ã¯ãã¹ããè¡ãã失æãããåºæ¬çã«ã¤ã³ã¹ãã¼ã«ã§ããªã(è¨å®ã§å¤ãããã¾ã)ä»çµã¿ãæã£ãã©ã¤ãã©ãªãrubygems-test ãç»å ´ãã¾ããã
ã¤ã³ã¹ãã¼ã«ã¯ç°¡åã§
gem install rubygems-test
ãã¦ã~/.gemrc ã®è¨å®ã«ä»¥ä¸ã®æãã§è¨å®ã追å ãã¾ãã(詳ãã㯠https://github.com/rubygems/rubygems-test ã¨ãèªãã§ãã ãã)
test_options: auto_test_on_install: true # package ã®ã¤ã³ã¹ãã¼ã«æã«èªåã§ãã¹ããè¡ãã test_on_install: true # package ã®ã¤ã³ã¹ãã¼ã«æã«ãã¹ããè¡ãã(Y/n)ã§å°ãããã install_development_dependencies: true # add_development_dependency ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã test_development_dependencies: false # add_development_dependency ãªããã±ã¼ã¸ããã¹ãããã(ãã¶ã) upload_results: false # ãã¹ãçµæã test.rubygems.org ã«ã¢ãããã¼ãããã force_install: false # ãã¹ãã«å¤±æãã¦ãå¼·å¶çã«ã¤ã³ã¹ãã¼ã«ããã force_uninstall_on_failure: false # ãã¹ãã«å¤±æãããã¢ã³ã¤ã³ã¹ãã¼ã«ããã(ãã¶ã)
ããã§"ãã¹ãã®è¨å®ãé©åã«ããã¦ãã"ã©ã¤ãã©ãªã®å ´åãèªåã§ãã¹ããå®è¡ããã¾ãã"ãã¹ãã®è¨å®ãé©åã«ããã¦ãã"ã©ã¤ãã©ãªã¨ããã®ã¯ä»¥ä¸ã®æ¡ä»¶ãæºããã¦ãã©ã¤ãã©ãªã§ãã
- ããã±ã¼ã¸ã« .gemtest ãå«ã¾ãã¦ãã
- rake ã® test ã¿ã¹ã¯ããã
Jeweler ãªã©ã§ããã±ã¼ã¸ã®ã²ãªå½¢ãä½ã£ã¦ãå ´åãGemfile ããåæã«ä¾åã©ã¤ãã©ãªå¨ãã®è¨å®ã¯çæãããã®ã§ã.gemtest ãä½ã£ã¦ git add ãã¦ãrake spec ãªã¿ã¹ã¯ãããªãã£ãããrake test ãªã¿ã¹ã¯ã§ spec ãå®è¡ããã(ã¡ãã£ã¨å¾®å¦ã§ããâ¦)ã¿ã¹ã¯ãç¨æããã°ããã ãã§çµããã§ç°¡åã§ãã®ã§ãgem ã©ã¤ãã©ãªã®ä½è
ã¯ç¨æããã¨è¯ãã¨æãã¾ãï¼
ã¾ããrubygems-test ãå
¥ãã㨠gem test package åã§ãã¹ããå®è¡ã§ããçµæã®ã¬ãã¼ãã test.rubygems.org ã«ã¢ãããã¼ããããã¨ãã§ãã¾ãã
- http://test.rubygems.org/gems/prefetch-rspec/v/0.1.4/test_results/1203
- (gem test prefetch-rspec ãã¦ã¿ãçµæã§ãããªãã warn ãå ¥ã£ã¦ã¾ããâ¦)
ã¨ããããã§ãæè¿ã¯ rubygems ãå¾ã ã« CPAN ã«è¿ã¥ãã¦ããæãããã¾ããã¾ã rubygems-test ããã¸ã§ã¯ãã¯å§ã¾ã£ã¦4ã¶æããããããã£ã¦ããããrubygems ã«ãããã¹ãæåãæ ¹ä»ãããããã«ããæ¯éã¿ãªãã使ã£ã¦ã¿ã¾ããããç¹ã« gem ã®ä½è ã¯æ¯é .gemtest ãè¨ç½®ãã¦ãã¤ã³ã¹ãã¼ã«æã«ãã¹ãå¯è½ãªããã±ã¼ã¸ãä½ã£ã¦ããã¾ããã :D