Moodle application with behat and phpunit
1.8K
Initial setup needed on host machine.
Create a docker group to avoid using sudo while executing scripts.
NOTE: You need to logout and login to make group affective.
docker pull rajeshtaneja/php:5.4
docker pull rajeshtaneja/php:5.5
docker pull rajeshtaneja/php:5.6
docker pull rajeshtaneja/php:7.0
docker pull rajeshtaneja/selenium:2.53.0
Above will be done via run.sh script automatically, depending on what options you pass.
Run Moodle official application
./run.sh --moodlepath=/var/www/html/m --execute=moodle --shareddir=/host/shared --user=moodle --phpversion=5.4
/host/shared folder is on host machine which will contain behat faildump and moodledata.
./run.sh --moodlepath=/var/www/html/m --execute=behat --shareddir=/host/shared --user=moodle --phpversion=5.4 --run=2 --totalruns=4
./run.sh --moodlepath=/var/www/html/m --execute=behat --shareddir=/host/shared --user=moodle --phpversion=5.4 --run=2 --totalruns=4 --profile=chrome
Following profiles are supported
./run.sh --moodlepath=/var/www/html/m --execute=behat --shareddir=/host/shared --user=moodle --phpversion=5.4 --run=0 --totalruns=4 --tags='@javascript'
./run.sh --moodlepath=/var/www/html/m --execute=behat --shareddir=/host/shared --user=moodle --phpversion=5.4 --run=1 --totalruns=1 --name="This is test"
./run.sh --moodlepath=/var/www/html/m --execute=phpunit --shareddir=/host/shared --user=moodle --phpversion=5.4
Option string for short options with arguments:
Option string for long options with arguments:
Content type
Image
Digest
Size
417.1 MB
Last updated
over 9 years ago
docker pull rajeshtaneja/php:5.4