YAPC::Fukuoka 2017 HAKATA
YAPC::Fukuoka 2017 HAKATA
ææ°(1.4.x)ã® Spring Boot ã§ã¯ãã®æ¹æ³ã使ãå¿ è¦ã¯ç¡ããªã£ã¦ãã¾ãã @WebMvcTest 㨠@MockBean ã使ç¨ããã®ãè¯ããã¨æãã¾ãã æè¿ãSpring-Boot ã触ã£ã¦ãã¾ãã Spring-Boot èªä½ã®ä½¿ãæ¹ã¯ãGoogle å çã«èãã°ã ãããæãã¦ãããã®ã§ã@RestController ãªã³ã³ããã¼ã©ã®åä½ãã¹ãã«ã¤ãã¦æ¸ãã¦ããã¾ãã 使ç¨ãã Spring-Boot ã®ãã¼ã¸ã§ã³ã¯ 1.2.1.RELEASE ã«ãªãã¾ãã ãåä½ãã¹ããã¨ããã°å¯¾è±¡ã¯ã©ã¹ã®åä½ã«å¯¾ãããã¹ãã®äºãã¨æãã¾ãããã³ã³ããã¼ã©ã®å ´åã¯ãã¬ã¼ã ã¯ã¼ã¯ã®è¨å®ã¨åä½ãããç¨åº¦å å³ããªãã¨ãã¹ãããæ¼ãã¦ãã¾ãç®æãå¤ããªã or çµåãã¹ã(æå/èªååãã)ã§ç´°ããªé¨åã¾ã§ãã¹ããããã¨ã«ãªã£ã¦ãã¾ããã¨æãã¾ãã Spring-Boot ã«ã¯ spri
ã¯ããã« å é±ã®åææ¥ï¼2015å¹´5æ16æ¥ï¼ã«è¥¿è.rbï¼ç¥æ¸.rbã§ãRubyistã®ããã®ãã¹ãã³ã¼ãç¸è«ä¼ ï½ãã¹ãã®æ¸ãæ¹ã«æ©ãã§ãã¾ãããï¼ï½ãã¨ããåå¼·ä¼ãéå¬ãã¾ããã ãã®åå¼·ä¼ã¯ããã¹ãã³ã¼ãã«é¢ããçåãæ©ã¿ãã¿ããªã§æã¡å¯ããã¿ããªã§è§£æ±ºãããã¨ããç®çã«ããåå¼·ä¼ã§ãã åå¼·ä¼ä¸ã¯ããããã¨èå³æ·±ãè°è«ãåºãã®ã§ãä»åã®ã¨ã³ããªã§ã¯ãã®å 容ãç°¡åã«ã¾ã¨ãã¦ã¿ã¾ãã åå¼·ä¼ã§æãã£ã質çå¿ç ãã使ããã¬ã¼ã ã¯ã¼ã¯ã¯ï¼ RSpecã大å¤æ°ãMinitestãè¥å¹²åã gemãéçºããã¨ãã¯MinitestãRailsã¯RSpecãã¨ããããã«éçºå 容ã«ãã£ã¦ãã¬ã¼ã ã¯ã¼ã¯ã使ãåãããã¨ãã人ãããã Minitestã£ã¦ã©ããªã®ï¼ å°å ¥ãç°¡åãassertã¡ã½ããã ãç¥ã£ã¦ããã°ãªãã¨ããªãã Railsã«ã対å¿ãã¦ãããCapybaraã使ããã RSpecã®s
2. #ccc_r11 Copyright 2016 Hiroyuki Onaka ãã¹ãé§åéçº(Test Driven Development) TDDã¨ã¯ï¼ Generated by 社çã¡ããå°è©ã¡ã¼ã«ã¼ http://blog.oukasoft.com/OS/ 3. #ccc_r11 Copyright 2016 Hiroyuki Onaka By National Photo Company [Public domain], via Wikimedia Commons https://en.wikipedia.org/wiki/Bulletproof_vest ãã¹ããã¡ã¼ã¹ããããï¼
func TestSetsRemoteAddr(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { fmt.Fprintf(w, "%s", r.RemoteAddr) })) defer ts.Close() res, err := Get(ts.URL) if err != nil { t.Fatalf("Get error: %v", err) } body, err := ioutil.ReadAll(res.Body) if err != nil { t.Fatalf("ReadAll error: %v", err) } ip := string(body) if !strings.HasPrefix(ip, "1
Qiita:Teamã«æãã社å ããã¥ã¡ã³ãã ã£ããã©ãç¹ã«åé¡ãªãã®ã§Qiitaã«ãæããã åæã¨ã㦠browserify-rails ã¨babelify ãå°å ¥ããã¦ããç¶æ³ãæ³å®ãã¦ãã åºæ¬æ¹é æ°è¦ã³ã¼ãã¯ES2015ã§æ¸ã æ¬çªã¯browserify(-rails)ã§ã³ã³ãã¤ã«ããã åä½ãã¹ã㯠node ç°å¢ä¸ã§èµ°ããã ãã¹ãç°å¢ä¸ã§ã¯ jsdom 㧠window, document ãã¢ãã¯ãã åä½ãã¹ãã§ã¯ ãã©ã¦ã¶ç¹æã®æåã¯ãã¹ãããªã è£å´ã®ç°å¢(browserifyãspec-helper)ã¯é£ãããã¦è¯ãããå©ç¨è ããã¿ããç¯å²ã¯è¤éã«ããªã(npm install; npm testã§èµ°ã) Universal JavaScript ã«å¯ãããã¨ã§ã³ã¼ãã®ãã¼ã¿ããªãã£ãä¸ãã äºåæºå browserify-railsãå°å ¥ããã .babelr
18. å¤æ´ã¸ã®å¼·ã ã³ã¼ãã®å¤æ´ ãã°ã®çºè¦ å³å¯ãªãã¹ã å¤æ´ã«å¼±ã ããå¤ãã®ãã°ãçºè¦ã§ãã å¯å®¹ãªãã¹ã å¤æ´ã«å¼·ã çºè¦ã§ãããã°ã¯éããã ãã¹ãã®å³å¯æ§ã¨çºè¦ã§ãããã°ã®é¢ä¿ 19. å ·ä½ä¾ï¼ã¢ãµã¼ãã®ä½¿ãåã $actual = $this->Sample->getSomething(); $this->assertInternalType("array", $something); $this->assertEquals($expected, $something); å¯å®¹ãªã¢ãµã¼ãï¼æ»ãå¤ã®åãã§ãã¯ã®ã¿ å³å¯ãªã¢ãµã¼ãï¼ç価ãã©ããã®ãã§ã㯠å®è¡
ã¿ãªããããã«ã¡ã¯ã@ryuzeeã§ãã Behatã¯è¯ããããªã®ã§å¼ãç¶ãæ¤è¨¼ãã¦ãã¾ãã ä»åã¯ãBehatã¨Seleniumãçµã¿åããã¦ãåãå ¥ããã¹ãåã®ãã¹ããèªååãã¦ã¿ãã®ã§ããã®æ¹æ³ã«ã¤ãã¦èª¬æãã¾ãããã ãªããååã®è¨äºãèªã¾ãã¦ããªãå ´åã¯ã¾ããã¡ããåç §ãã¦ãã ããã PHPã§BDD(Behavior Driven Development)ããæ¹æ³ Seleniumã®èª²é¡åãé¢ãã£ã¦ããæ¡ä»¶ã§ã¯åå ¥ãã¹ããèªååãã¦ããã±ã¼ã¹ããã¡ãããã£ã¦ããã®éã¯PHPUnitã¨Seleniumãçµã¿åããã¦ãã¾ãã ãã®ãã¹ãã«ã¯ä»¥ä¸ã®ãããªèª²é¡ãããã¾ãã ç»é¢ã®æä½ãããphpã³ã¼ãã大éã«ãã£ã¦ãã½ã¼ã¹ãè¦ãã ãã§ã¯ä½ããã¦ããã®ãåããã«ããSeleniumã¯æä½ã«ç»é¢ã®è¦ç´ åå©ç¨ãããããä¾ãã°ãµã¤ãã®ãã¶ã¤ã³ãå¤§å¹ ã«å¤ãããããã¨ããã¹ãã®ä¸èº«ãå¤§å¹ ã«æ¸ãæããª
The powerful, easy-to-use JavaScript testing framework.Get Started View the Docs Easy Zero configuration and setup for any Node.js project, and minimal setup for Browser-based projects. Universal QUnit can run anywhere; web browsers, Node, SpiderMonkey, even in a Web Worker! Test your code where it runs.
package spockexample; import org.junit.Before; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.DataPoints; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; @RunWith(Enclosed.class) public class Perso
ããã«ã¡ã¯ï¼ç½ã¤ã®ã®éçºè ã森æ¬ã§ãã ç½ã¤ã®ã§ã¯ãã¾ API ãµã¼ãã¼ã Go è¨èªã§éçºãã¦ãã¾ãã çããã Go ã®è©±é¡ãããè¦èãããããã«ãªã£ã¦ããã¨æãã¾ããä»åã¯ç½ã¤ã®ã®æ¥åã§ã©ããªé¢¨ã« Go ã使ã£ã¦éçºãã¦ãããã®ä¸ç«¯ãç´¹ä»ãã¾ãã ä½è«ã§ãããå æ¥ã大å¦ã®å çã¨ã話ãããã¨ãã«ãããªè©±ã伺ãã¾ããããã®å çã¯å¦çã«ããã°ã©ãã³ã°ãæãã¦ããããã§ãããä½å²ãã®å¦çã¯å第ç¹ã«å±ããªãããã§ãããããããããã£ãå¦çãããã°ã©ãã³ã°ã®ç´ é¤ããªããã¨ããã¨ãããã訳ã§ã¯ãªããããã°ã©ãã³ã°ãå¦ã¶ä¸ã§ãã®å¦çã«ã¨ã£ã¦ä½ãç解ãä¿ãã®ããéãã ããªã®ã ã¨ä»°ã£ã¦ãã¾ãããæããå´ã¨ãã¦å ¨ã¦ã®å¦çãç¿å¾ã§ããããã°ã©ãã³ã°æè²ã¨ããã®ãè¦ã¤ãããã¦ããªãã®ãæããã¨ãã£ã話ãããã¦ãã¾ããã ä½ããå¦ã¶ã¨ããã®ãä¸è¬è«ã§ã¯èªãã®ã¯é£ããã¨ãããã¨ããããã¾ããããã®ãããç§ã¯ããã
JavaScript ã®ãã¹ã æ¸ããªãã¨æãããããæ¸ãããã¨ã¯æã£ã¦ããããæ¸ãã¾ã§ã®æ·å± ããããã¨é«ããªã£ã¦ãã¾ã£ãæ°ããã¦ãã人ã¸ã æå°ã®ãã¹ã æ¬è³ªçã«ãã¹ããæ¸ãã®ã«ãã¬ã¼ã ã¯ã¼ã¯ã¯ãããªãã assertion ã ãããã°ããã isomorphic ã«ããããªãã node ã® assert ã¢ã¸ã¥ã¼ã«ãã使ãã console.assert ã ãã§æ¸ããã // assert function assert(actual, expected) { console.log('.'); console.assert(actual === expected, '\nact: ' + actual + '\nexp: ' + expected); } function TestSum() { assert(1+2, 3); } // exec TestSum(); ãã¨ã¯æ®éã«
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
2. Self Introduction ⢠ããã kyon_mm ⢠ãã¹ãã¢ã¼ããã¯ã 2å¹´ç® â¢ TDD/BDD, SCM, Agile, Softwaretest, SoftwareEngineering ⢠ãªãã ⢠åºç¤åå¼·ä¼, SCMBC, Nagoya.Testing, Cafe.Testing
ä»äºã§PHPUnitã使ãããã«ãªã£ã¦1å¹´ããããçµã¡ããã¼ã å ã«ãã¹ãæ¸ãæåãå®çãã¦ãã¾ããã ãã¹ãã®è³ªã¨éãåä¸ãã¦ãæå¹æ§ãé«ã¾ã£ã¦ãã¦ããæãã ãªã¼ã¨æãåé¢ ãæéãããéã ã ã¨ãããé¢åãããåé¡ãæµ®ä¸ãã¦ãã¾ããï¼ï¼ã ç¾ç¶ã®ãã¹ãå®è¡ãã° % ./vendor/bin/phpunit PHPUnit 3.7.28 by Sebastian Bergmann. ............................................................... 63 / 612 ( 10%) ............................................................... 126 / 612 ( 20%) .............................................
TL;DR - æåã®ä¸äººã¯ã¤ãããã©å¾ç¶ã¯ããã§ããªãã®ã§å é§è ã¯èªè¦ã¨èªããæã£ã¦ãªã¼ã«ã°ãªã¼ã³ãç¶æããã ãã®ã¨ã³ããªã¯Marionette.js ãã¼ã¹ã§3ã¶æéçºããã¢ããªã®ã«ãã¬ãã¸æ¨ç§»ãã¾ã¨ãã¦ã¿ã - @kyanny's blogã¨ããã¨ã³ããªã®ç¶ãã«ãããã¾ããæªèªã®æ¹ã¯å ã«ãã¡ããä¸èªããããã¨ããããããã¾ãã Marionette.js ãã¼ã¹ã§3ã¶æéçºããã¢ããªã®ã«ãã¬ãã¸æ¨ç§»ãã¾ã¨ãã¦ã¿ã - @kyanny's blogã®çµè«ã§è§¦ããããã«ãä»åãã¹ããæ¸ããã¨ã«ãã ãã£ãã®ã¯ããã¯ã©ã¤ã¢ã³ããµã¤ã JavaScript (AltJS) ã®ãã¹ããæ¸ãã®ã¯æ¬å½ã«é£ããã®ãï¼ãã¨ããåãã«å¯¾ããèªåãªãã®åçãå®è·µãã¦æ¤è¨¼ãã¦ã¿ããã£ãã¨ããçç±ããã£ãããã ã 以åãããã¯ã©ã¤ã¢ã³ã JavaScript (CoffeeScript ãä»ã® AltJS ã
TDD/BDDã«ããããæ¯ãèããã®æå³ããã¨ããã¨ã¯ä½ãªã®ãï¼ãã¾ããèããªãTDD/BDDè¶ å ¥éï¼3ï¼ï¼1/3 ãã¼ã¸ï¼ ååã®ãTDDï¼BDDã®ææ³ã¨ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã®é¢ä¿ãæ´çããããã§ã¯ãTDDï¼BDDã«ã¤ãã¦ããã®ææ³ã¨ãããããµãã¼ããããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã«åãã¦è§£èª¬ãã¾ããããã®ä¸ã§ãTDDï¼BDDã«ã¤ãã¦ã¯å®éã®çç·´è ã®è¨èãåãããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦ã¯æ¦è¦ã触ãã¦ããã®ç³»èããã©ãã¾ããã BDDã¯ãã®ååã«ãBehaviorãã¨ããã¾ããããæ¯ãèãã¨ãã¦ã®ãã¹ãã³ã¼ããæ¸ããã¨ã¯ã©ããããã¨ãªã®ã§ããããï¼ é£ããèãéããå¿ è¦ã¯ããã¾ãããããããã¯æ¯ãèããæ¸ãã¦ããªãããã¨ææãããçç·´è ãä½ãèãã¦ããããç解ãããã¨ã¯BDDãç¿çãã¦ããä¸ã§éè¦ãªæå³ãæã£ã¦ãã¾ãã æ¬è¨äºã§ã¯ãæ¯ãèããã¨ããè¨èãã©ã®ãããªæå³ã§ä½¿ãã
DHHã®"TDD is dead. Long live testing."ãã訳ãã¦ã¿ã¾ããã 翻訳 ãã£ã¨ã By David Heinemeier Hansson on April 23, 2014 è David Heinemeier Hansson 2014å¹´4æ23æ¥ Test-first fundamentalism is like abstinence-only sex ed: An unrealistic, ineffective morality campaign for self-loathing and shaming. ãã¹ããã¡ã¼ã¹ãåç主義ã¯ç¦æ¬²ã®ã¿ãå±ããæ§æè²ã®ãããªãã®ã ãã¤ã¾ããèªå·±å«æªã«é¥ã£ã¦ãã人ã«åãããéç¾å®çã§å¹æã®ãªããéå¾³æè²ã®ãããªãã®ã ã It didn't start out like that. When I first disco
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}