dirx / infection-codeception-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing infection with codeception

Based on:

Build image with xdebug & composer

docker-compose build --pull php

Update dependencies

docker-compose run php composer

Run tests

docker-compose run php vendor/bin/codecept run

Run infection (first time - will fail)

docker-compose run php vendor/bin/infection

Run codeception tests with initial infection based config (wail fail):

docker-compose run php vendor/bin/codecept run --config /app/./infection/codeception.initial.infection.yml --coverage-phpunit codeception-coverage-xml --xml /app/./infection/junit.xml

Change dump configuration in tests/integration.suite.yml to '../tests/_data/stuff.sql'.

Run infection again (now ok)

docker-compose run php vendor/bin/infection

About


Languages

Language:PHP 71.9%Language:TSQL 15.5%Language:Dockerfile 12.6%