![]() ![]() ![]() # (you should see "Configured app tests for version X.X.X" here) # Run behat testsīin/moodle-docker-compose exec -u www-data webserver php admin/tool/behat/cli/run.php -tags= " Git clone " $MOODLE_DOCKER_WWWROOT/local/moodleappbehat " # Initialize behat environmentīin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php This will assume that you've already initialized the app calling npm install and npm run setup locally.įor both options, you also need to set MOODLE_DOCKER_BROWSER to "chrome". Set the MOODLE_DOCKER_APP_PATH env variable to the codebase in you file system. Use a local copy of the application code and serve it through Docker, similar to how the Moodle site is being served. You can read about the available images in Moodle App Docker Images (for Behat, you'll want to run the ones with the -test suffix). You need to specify the MOODLE_DOCKER_APP_VERSION env variable and the moodlehq/moodleapp image will be downloaded from Docker Hub. Use a Docker image that includes the application code. The Behat tests will be run against a container serving the mobile application, you have two options here: Everything else should be the same as running standard Behat tests for Moodle. In order to run Behat tests for the Moodle App, you need to install the local_moodleappbehat plugin in your Moodle site. Use containers for running behat tests for the Moodle App You off continuously, putting the correct credentials, clean all cookiesįor your Moodle site URL (usually localhost) from your browser. During manual testing, if you are facing that your Moodle site is logging.You can customize it by passing -adminuser='myusername' The admin username you need to use for logging in is admin by default.Mailpit is listening on to view emails which Moodle has sent out.# Initialize Moodle database for manual testingīin/moodle-docker-compose exec webserver php admin/cli/install_database.php -agree-license -fullname= "Docker moodle " -shortname= "docker_moodle " -summary= "Docker moodle site " -adminpass= "test " -adminemail= " ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |