PucelaTestingDays - Testing en PHP y Test funcionales con Java y Geb
Seguimos con los PucelaTestingDays!
Esta vez nos centramos en los lenguajes de programación PHP y Java. Isidro Merayo hablará sobre Testing en PHP e incluirá una parte de taller práctico. Adjuntamos los requisitos para el taller un poco más abajo. Jorge Jimenez nos enseñará cómo utilizar Geb. Geb es una solución para hacer tests funcionales/web/aceptacion a través de frameworks como Spock, Junit & TestNG.
Ya puedes apuntarte a la 2º charla => “Testing en PHP y Test funcionales con Java y Geb” desde el siguiente enlace:
Charla: Testing en PHP y Test funcionales con Java y Geb
Día: 23/11/2013
Hora: 10:00 – 14:00
Lugar: Agencia de Innovación y Desarrollo Económico – Valladolid
Entorno necesario para el taller de PHP:
Instalar paquetes y configuración básica ======================================== Utilidades ---------- [email protected]:~# apt-get install curl tree [email protected]:~# apt-get install vim vim-gtk [email protected]:~# aptitude install git gitg meld [email protected]:~# aptitude install graphviz graphviz-dev PHP (recomendable 5.4+) ----------------------- [email protected]:~# apt-get install php5 php5-cli php-pear php5-mysql php5-sqlite php5-xdebug php5-json php5-curl php5-xsl Composer -------- [email protected]:/usr/local/bin# curl -sS https://getcomposer.org/installer | php [email protected]:/usr/local/bin# ln -s composer.phar composer PEAR ---- [email protected]:~# pear update-channels [email protected]:~# pear upgrade-all Nothing to upgrade-all PHPQATools ---------- [email protected]:~# pear config-set auto_discover 1 config-set succeeded [email protected]:~# pear install pear.phpqatools.org/phpqatools [email protected]:~# pear channel-discover pear.phpdoc.org [email protected]:~# pear install phpdoc/phpDocumentor Java - OpenJDK -------------- [email protected]:~# apt-get install openjdk-7-jdk openjdk-7-jre openjdk-7-doc [email protected]:~# apt-get install maven ant Jenkins ------- [email protected]:~# aptitude install jenkins Intalar plugins: Seguir las instrucciones de http://jenkins-php.org/ (añadimos un SCM como Git) (se puede hacer como usuario sin privilegios) [email protected]:~$ wget http://localhost:8080/jnlpJars/jenkins-cli.jar [email protected]:~$ java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle cloverphp dry htmlpublisher jdepend plot pmd violations xunit git [email protected]:~$ java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart [email protected]:~$ curl https://raw.github.com/sebastianbergmann/php-jenkins-template/master/config.xml | java -jar jenkins-cli.jar -s http://localhost:8080 create-job php-template [email protected]:~$ java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration Creando proyecto con simple_php_skeleton ======================================== $ git clone https://github.com/isidromerayo/agilecyl_ptd_php_kata $ cd agilecyl_ptd_php_kata $ composer install --prefer-dist
Hay una máquina virtual configurada configurada como se indican en la instrucciones, con Virtual Box.
Datos
usuario: taller
contraseña: agilecyl