Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moodlehq/moodle-webinstaller-test
Moodle Web Installation Testing
https://github.com/moodlehq/moodle-webinstaller-test
Last synced: 14 days ago
JSON representation
Moodle Web Installation Testing
- Host: GitHub
- URL: https://github.com/moodlehq/moodle-webinstaller-test
- Owner: moodlehq
- Created: 2024-07-10T02:22:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-09T23:18:33.000Z (15 days ago)
- Last Synced: 2025-01-10T00:23:51.843Z (15 days ago)
- Language: Gherkin
- Size: 9.77 KB
- Stars: 0
- Watchers: 7
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Moodle Web Installation Testing
This repository contains the testing suite for the Moodle web installation process.
## Pre-requisites
- A web server with PHP and a database server installed, as if you were going to install Moodle manually.
- Composer installed.
- The Moodle codebase, you can clone the code from the Moodle repository.## Getting Started
```bash
# Get Moodle code, you could select another version branch (skip this if you already got the code)
git clone -b main git://git.moodle.org/moodle.git moodle# Clone the web install repository.
git [email protected]:moodlehq/moodle-webinstaller-test.git
cd moodle-webinstaller-test# Install the dependencies.
composer install# URL to the moodle site to be installed.
export MOODLE_SITE_URL="http://localhost/moodle"# Database connection details, ensure the database is created before running the tests.
export DB_TYPE=pgsql
export DB_HOST=localhost
export DB_NAME=moodle
export DB_USER=postgres
export DB_PASS=moodle# Ensure the site to be installed has write permissions so moodle can write the config.php file.
sudo chown -R www-data:www-data /path/to/moodle# Run the tests
/vendor/bin/behat
```## Troubleshooting
The test execution usually takes around 54 seconds to complete, the common issues that might prevent the tests from passing are:
- The database connection details are incorrect.
- The moodle site URL is incorrect.
- The moodle site directory does not have write permissions and Moodle is unable to write the config.php file.
- There's a config.php file in the moodle site directory.