Eclipse ã§è¤æ°ã® Specification ãä¸æ¬å®è¡ãã
Spock ã使ãç¶ãã¦ããã¨ãå½ç¶ã§ãã Specification ãã¡ã¤ã«ã¯ã©ãã©ãå¢ãã¦ããã¾ãã
å®ã¯ Spock ã«ã¯ Junit ã®ãã¹ãã¹ã¤ã¼ãã®ãããªæ©è½ã¯ããã¾ããã
ã¤ã¾ããSpock èªèº«ã«ã¯ è¤æ°ã® Specification ãä¸æ¬ã§å®è¡ããæ©è½ã¯ãªãã®ã§ãã
ã§ããããªæã«å½¹ã«ç«ã¤ã®ã Eclipse ã«ç¨æããã¦ãã è¤æ°ã®ãã¹ãã¯ã©ã¹ãä¸æ¬ã§å®è¡ããæ©è½ã§ãã
ãã㯠ãã¨ã㨠JUnit ã®çºã«ç¨æãããæ©è½ã§ããããã¡ãã Spock ã§ãå©ç¨ã§ãã¾ãã
ããæ¹ã¯ç°¡åã§ãã
é常 Specification ãå®è¡ããå ´å å®è¡ããã Specification ãã¡ã¤ã«ã§å³ã¯ãªãã¯ãã¦
[Run As] --> [JUnit Test] ãé¸æãã¾ãããã
ããã¨åããã¨ã ããã±ã¼ã¸ãã½ã¼ã¹ãã©ã«ãã§ããã°ããã®ããã±ã¼ã¸ãããã¯ã½ã¼ã¹ãã©ã«ãé
ä¸ã®
ãã¹ã¦ã® Specification ãå®è¡ãããã¨ãã§ããã®ã§ãã
ä¾ãã°ãcom.bluepapa32 ããã±ã¼ã¸ã§å®è¡ãã㨠com.bluepapa32 ããã±ã¼ã¸é
ä¸ã® Specification (ä¸ã®å ´å HelloSpec 㨠HelloSpec2) ããã¹ã¦å®è¡ããã¾ãã
ã¨ã£ã¦ã便å©ã§ããããã¹ã¦ã® Specification ãå®è¡ããã®ã« ä¸ã¤ã㤠Specification ãé¸æãã¦å®è¡ãã¦ããæ¥ãæ®ãã¦ãã¾ãã¾ãããã
Junit ã®ãã¹ãã¯ã©ã¹ãåãããã«å®è¡ã§ããã®ã§ ãã²è©¦ãã¦ã¿ã¦ãã ããã
ãã¡ãã Gradle ã®ãããªãã«ãã¹ã¯ãªããã使ãã°ãä½ãèããªãã¦ã ãã¹ã¦ã® Specification ãã¡ã¤ã«ã ä¸æ¬ã§å®è¡ãããã®ã§ããããªãã¨æ°ã«ããå¿ è¦ããªããã§ããã©ã...