As all projects are running in docker environment as all test have to run in docker too.
In case of different testing frameworks there are different commands to run test.
For every project which uses Codeception framework for testing in docker-compose.yml.local
already included selenium image. So all you need to start testing is call codeception from docker-compose.
For example:
docker-compose exec php-fpm ./vendor/bin/codecept run
For testing phpunit or behat command is the same but also you can add custom path to configuration file.
For example:
docker-compose exec php-fpm ./vendor/bin/phpunit -c ./vendor/hiqdev/hiapi-legacy/phpunit.xml.dist
docker-compose exec php-fpm ./vendor/bin/behat -c ./vendor/hiqdev/billing-mrdp/behat.xml
download.sh which is located in your hipanel dir in tests/software/run.sh (in same folder) to run Selenium Web Driver in backgroundcodecept which is located in your hipanel dir in vendor/bin/At first you need to configure .env file to codeception can reach you service. For example .env.local.
To limit tests execution scope, use path like this:
./vendor/bin/codecept run acceptance <path to dir or file>
Useful options:
--fail-fast (-f) - stop after first failure--debug (-d) - show debug and scenario output-v|vv|vvv - increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debugFor more info about how to run tests see codeception manual.