You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
2. æ¬ã¹ã©ã¤ãã®å¯¾è±¡ æ®æ®µ Eclipse ã使ã£ã¦ãã Java ãããããã¼å ¨è¬ JUnit ã使ã£ã¦ããããããã¡ãã£ã¨ã¹ãã¼ãã« ãã¹ããæ¸ãããã¨æã£ã¦ãã人 ãã¹ãã®ãªãããã¸ã§ã¯ãã§å°ã£ã¦ãã ããã¼ã¸ã£ã¼ã»ãªã¼ãã¼
Groovy/Grailsã®æ¯ãèãé§åéçº (Behavior-driven Development, BDD) ãã¬ã¼ã ã¯ã¼ã¯ Spockã®ä½¿ãæ¹ (é¦è¨³) Spockã®åºç¤ Spockä»æ§ã解åããã ãã®ç« ã§ã¯, Groovyã¨Unitãã¹ãã«ã¤ãã¦ã®åºæ¬çãªç¥èã¯æã£ã¦ãããã®ã¨ãã¾ã. ãã, ããªããJavaããã°ã©ãã§, Groovyã«ã¤ãã¦ã¯ä½ãç¥ããªãã¨ãã¦ã, å¿é ã¯è¦ãã¾ãã. Groovyã¯ããªãã«ã¨ã£ã¦ãã¨ã¦ããªãã¿æ·±ããã®ã«ãªãã¨æãã¾ãã! å®é, Groovyã®ä¸»è¦ãªè¨è¨ç®æ¨ã®ä¸ã¤ã¯Javaã«æ²¿ã£ãã¹ã¯ãªããè¨èªã¨ãªããã¨ãªã®ã§ã. å¿ è¦ã«å¿ã㦠Groovyã®ããã¥ã¡ã³ã ãåç §ãã¦ãã ãã. ãã®ç« ã®ç®ç㯠ç¾å®çãªSpockä»æ§ãæ¸ããã¾ã§Spockã«ã¤ãã¦å¦ã¶ ããªãã®å¥½å¥å¿ãããç«ã¦ã ãã¨ã§ã. Groovyã«ã¤ãã¦ãã£ã¨ããç¥ãããã«ã¯, h
Groovy!ï¼æ¨æ¶ï¼ ã¯ããã« Spockã¯Groovy製ã®BDDãã¬ã¼ã ã¯ã¼ã¯ã§ããåããæ°ã«ãªã£ã¦ãã*1ã®ã§æ¯é試ãã¦ã¿ãããªã¨æã£ã¦ãããã id:backpaper0 ããã ã¯ããã¦ã®Spock - è£ç´ ã§è©¦ãã¦ããã®ã§ãç§ã試ãã¦ã¿ã¾ãããã¨ãã£ã¦ããã£ãå 容ã¯ã»ã¼ã³ãããããããææãã£ã¦ãã¤ã§ãã 試ãã¦ã¿ã ã¨ãããããããã¨å¤±æãã¦ã¿ã (worldã®!ããªã) @Grab('org.spockframework:spock-core:0.5-groovy-1.7') import spock.lang.* class HelloSpec extends Specification { def 'ååãå¼ãã§æ¨æ¶ãã'() { expect: say(name) == message where: name | message 'world' | 'Hello,
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}