I want the simplest parallel test running I can think of:
I would like to have my phpunit data level tests run parallel with my selenium UI tests.
The good thing about it - I already use 2 different commands for executing each:
So I would only need to setup that calling vendor/bin/phpunit tests/phpunit/ --coverage-php tests/coverage/phpunit.cov is sent to container 1, and that vendor/bin/phpunit tests/selenium/ is sent to container 2.
However, after reading into quite everything I found about parallelism here, I didnt find any hint how to set this up - can someone point me in the right direction?
Hi there,
yes, indeed it succeeded. Luckily, my unit tests and my selenium UI tests take about the same time, so I run each on one container. This works:
if [ $CIRCLE_NODE_INDEX = 0 ]; then
vendor/bin/phpunit tests/phpunit/ --coverage-clover tests/coverage/phpunit.xml
bash <(curl -s https://codecov.io/bash) -f tests/coverage/phpunit.xml
fi
if [ $CIRCLE_NODE_INDEX = 1 ] || [ $CIRLE_NODE_TOTALS = 1 ]; then
vendor/bin/phpunit tests/selenium/
vendor/bin/phpcov merge tests/coverage/ --clover tests/coverage/selenium.xml
fi