ãã®ã¨ã³ããªã¼ã¯ Symfony Advent Calendar 2015 18æ¥ç®ã®è¨äºã§ãã æ¨æ¥ã¯ tarokamikaze ããã® ãSymfonyåå¿è ãã¤ã¾ã¥ããã¡ãªãã¤ã³ãã ã§ããã ã¯ããã« Codeceptionã¯PHPã®ãã¹ãã£ã³ã°ã»ãã¬ã¼ã ã¯ã¼ã¯ã§ããä»åã¯ãããSymfonyããã¸ã§ã¯ãã«é©ç¨ãããã¨ã試ãã¦ã¿ã¾ããã 以åããCodeceptionã¯æ°ã«ãªã£ã¦ããã®ã§ãããUsing Codeception for Symfony Projects ã¨ãã¦Symfonyåãã®è¨äºãåºã¦ãããã¨ãã試ãã¦ã¿ããã¨æã£ã次第ã§ãã ãªããæå ã§è©¦ããSymfonyã®ãã¢ã»ããã¸ã§ã¯ãã以ä¸ã®ãªãã¸ããªã«ç½®ãã¦ããã¾ããã®ã§ãåèã¾ã§ã https://github.com/naoyes/2015-dec-quartetcom-tech-blog-codeceptio
ç»é¢ãæ£ãã表示ããã¦ããã®ããã確èªãããã¨ãã«Seleniumã使ãã®ã¯å¤§å¤ã ãªã¼ã¨èª¿ã¹ã¦ãããCodeceptionãè¦ã¤ãã¾ãã Codeception PHP Testing Framework is designed to work just out of the box. This means its installation requires minimal steps and no external dependencies preinstalled (except PHP, of course). Only one configuration step should be taken and you are ready to test your web application from an eye of actual user. ã ããã§ãã å°å ¥ã¯ç°¡åãQuick
WebPayã¯éçºè ãå®å¿ãã¦å¹çããéçºãé²ããããã®æ段ã¨ãã¦ãèªåãã¹ããéè¦ãã¦ãã¾ãã EC-CUBE決æ¸ã¢ã¸ã¥ã¼ã«mdl_webpayã®èªåçµ±åãã¹ããè¨è¿°ããçµé¨ããã¨ã«ã WebPayãå©ç¨ããã¢ããªã±ã¼ã·ã§ã³ãCodeceptionã®Acceptance Testã§ãã¹ãããæ¹æ³ãç´¹ä»ãã¾ãã ä»åã¯å¯¾è±¡ã®ã¢ããªã±ã¼ã·ã§ã³ã¨ãã¦ã以åã®è¨äºããå°ãã®PHPã®ã³ã¼ãã§WebPayãå°å ¥ãããã§ä½æãããã®ãå©ç¨ãã¾ãã æ¬è¨äºã®å 容ã¯ãç¾å¨ã®å®è£ ã«ä¾åããããã¯ãå¤æ°å«ã¿ã¾ãã ãã®è¨äºã§èª¬æãã¦ããå 容ãå°æ¥çã«ãå©ç¨ã§ãããã¨ããç´æãããã®ã§ã¯ãªããã¨ããç解ãã ããã å ¬å¼ãã¼ã¸ã®ããã¥ã¡ã³ãã§è§£èª¬ãã¦ããé ç®ä»¥å¤ã¯ãäºåãªãå¤æ´ãããã¨ãããã¾ãã ããã¾ã§ãã¹ãã®ã²ã¨ã¤ã®æ¹æ³ã¨ãã¦ãåèã«ãã¦ãã ããã SUTãåæãã ä»åã¯ãã¹ã対象ã®ã¢ããªã±ã¼ã·ã§ã³ããã§
Windowsã«Codeceptionãã¤ã³ã¹ãã¼ã«ããæé ï¼ éçºé¨ã®ç´ºéã§ãããã¹ãã®èªååã¨æ°æ©è½è¿½å æã«çºçãããã°ã¬å¯¾çã¨ãã¦Codeceptionã®å°å ¥ããããã¨ã¨ãªãã社å ã§åå¼·ä¼ã«åå ãã¾ããããã®å 容ã復ç¿ããããã«ãèªåãªãã«Codeceptionã®å°å ¥ã®æ¹æ³ãã¾ã¨ããã®ã§ãåå¿é²ã¨ãã¦å ±æãããã¨æãã¾ãã ä»åã¯ãCodeceptionã®å°å ¥æ¹æ³ã¨ç°¡åãªAcceptanceãã¹ãã®å®æ½æ¹æ³ãç´¹ä»ããããã¨æãã¾ãã ãåä½ç°å¢ã ã»Windows7(WindowsXPã§ãåä½ãããã¨ã確èªãã¾ããï¼ ã»PHP 5.3.2ä»¥ä¸ ãæºåã ã»Gitã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ï¼GitBashããã³ãã³ããå®è¡ããããã«å¿ è¦) âGitã®ãã¦ã³ãã¼ãã¯ãã¡ããã ã»PHP 5.3.2以ä¸ã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ âPHPã®ãã¦ã³ãã¼ãã¯ãã¡ããã â»ä»åã¯Composerãå©ç¨ãã¦C
PHPUnitãç¨ããåä½ãã¹ãã®ã³ã¼ããJenkinsã§èµ·åãã¦ã³ã¼ãã«ãã¬ãã¸çã¨ãã¹ãçµæã®åè¾¼ãè¡ãã¾ãããã Yii2ããã¯ãCodeceptionãã¤ã³ã¹ãã¼ã«ãã¦åä½ãã¹ããæ©è½ãã¹ããåãå ¥ããã¹ããè¡ãããã§ãã ãã£ãããªã®ã§Codeceptionã§ãã¹ããæ¸ãã¦Jenkinsã¨é£æºããã¦ã¿ã¾ãããã ãã¹ãã®æºå αçã®Yii2ã ã¨suggestã§è¨è¿°ããã¦ããã®ã§ãæ¹ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«å¾ã«ãã¹ãã®æºåãè¡ã£ã¦èµ·å確èªã¾ã§è¡ã£ã¦ããã¾ãããã ã¢ããªã±ã¼ã·ã§ã³ãã£ã¬ã¯ããªã§æä½ãã¦ä¸ãã $php composer.phar require --dev "codeception/codeception: 1.8.*@dev" "codeception/specify: *" "codeception/verify: *" >Loading comp
$yum -y groupinstall base network-tools development httpd-devel $yum install httpd openssl autoconf libxml2-devel openssl-devel freetype-devel libcurl-devel net-snmp-devel libpng-devel libjpeg-turbo-devel openldap-devel libmcrypt-devel readline-devel gd-devel bzip2-devel libicu-devel libwebp-devel gmp-devel libtidy-devel libxslt-devel $rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el
TLã§è©±é¡ã«ãªã£ã¦ããCodeIQã§ã®åé¡ã¨è§£èª¬ã¯ãã¡ãã§ãã ããã§ããªãããã¹ãé§åéçºãã¹ã¿ã¼ï¼ï¼åç°å人ããããã¹ãé§åéçºåé¡ã解çã³ã¼ã使ããªãã解説ãã¾ãï½ç¾å¨æå»ãé¢ãããã¹ãããããã¹ã容ææ§è¨è¨ãå¦ã¶ #tddï½CodeIQ MAGAZINE 大å¤ä¸å¯§ãªè§£èª¬ãã¨ã¦ãåèã«ãªãã¾ããã ãã ãåå ããã¦ããæ¹ã®æ¡ç¨ãããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã«Codeceptionããªãï¼ æ¥æ¬ã®PHPéçºè ã«Codeceptionãæµè¡ããããã¯ã¿ã¯ã·ã¨ãã¦ã¯çéã§ããªãäºæ ï¼ï¼ãã£ã³ã¹ï¼ã§ãï¼ ã£ã¦ãã¨ã§ãCodeceptionã使ã£ã¦æ¸ãã¦ã¿ã¾ããã ã¨ããã¤ã¤ããä»åã¯Codeceptionãã¡ã¤ã³ã§ã¯ãªããAspectMockãã¡ã¤ã³ã AspectMockã¨ã¯ Codeceptionã®éçºè ã®@davertããã«ãããã¡ãã¼ããã¼(not an ordinary)ãPHPå
第19åé¢è¥¿PHPåå¼·ä¼ Yii Framework 2.0 ãªãªã¼ã¹è¨å¿µåå¼·ä¼ ã®è³æã¯ãã¡ãã§ãã ã ãã¶ãããæ°å³ãªã®ã¯ãä¸è¬å ¬éãæèããã«æ¸ãã¦ããããã§ãããã®å ´ã«ãã人åãã«ãä»æ¥ã¯ããããåå¼·ä¼ãªã®ã§ç©ºæ°èªãã§ããã¨ããã®ãå ¥ã£ã¦ããã®ããäºæ¿ãã ããã Yii 2.0 ã¨ã¯ ãã¼ã¿ãªãªã¼ã¹è¨å¿µ 第ä¸ååå¼·ä¼ã®è³æ https://gist.github.com/tanakahisateru/cf8ef578d7ea24ea429a â» ã¤ãã³ãã¾ããã§ã¡ãã£ã¨ãªã¹ã¹ã¡ãããªãæ¸ãæ¹ãããã¾ã éå»ã®çºè¡¨ãããã°ãªã© http://www.slideshare.net/tanakahisateru/phpcon-2014yii http://image.slidesharecdn.com/yii-121012040114-phpapp01/95/yii-31-728.jpg
ãã¼ã¿ãã¼ã¹ãå«ãã èªåãã¹ãã¯é¢åã§ããããªã«ãé¢åã£ã¦ããã¹ãç¨ã®ãã¼ã¿ããããããã£ã¯ã¹ãã£ãæºåããã®ãããã Yii ã¯ãã¼ã¿ãã¼ã¹ã®çµæãã¢ãã¯ããç´ç²ãªãã¸ãã¯ãã¹ãã§ã¯ãªãããã¡ã³ã¯ã·ã§ãã«ãã¹ãããã¼ã¿ãã¼ã¹è¾¼ã¿ã®ãã¹ããæåãã¦ãã¾ãã2.0 ã«ãªã£ã¦ãBDDãµãã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ Codeception ã®ãã¹ãããã¸ã§ã¯ããä¸å¼ã¤ãã¦ããããã«ãªãã¾ãããBDD ãµãã«ãã¼ã¸ããã¹ãããã«ã¯ãã³ã¢ããåããã¨ãåæãã¤ã¾ããã¼ã¿ãã¼ã¹ãå½ç¶è¦ãããã§ãã ãã£ã¯ã¹ãã£ã¯ãã¹ã¦ææ¸ããã¦ãããã®ã§ããããã¨ãã° 21 件以ä¸ã§ãã¼ã¸ãã¼ã·ã§ã³ãããã¨ã試ããã¨æã£ãã... ã¨ãããã㧠Faker ãæ´»ç¨ãã¾ãããã Yii ã®ããã¸ã§ã¯ããã³ãã¬ã¼ãã® tests ãã©ã«ã以ä¸ã«ã¯ããã¹ãç°å¢å°ç¨ã® codeception\bin\yii ã³ãã³ããç½®ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}