This page is the top level page regarding all testing activities around the Moodle project. Testing is essential to make sure that developed code does what it is meant to do, without causing new problems.
Code is tested as part of reviewing at some key parts of the Moodle development process.
- Development - the developer of some code should test their own work on a wide variety of environments for correctness and performance
- Peer review - developers often test each others work early in the development process
- Integration reviews - Our integration team tests code weekly while they are evaluating suitability for integration into Moodle.
Integration functional testing
On Wednesday (all timezones) our Moodle HQ developers spend the day to manually test the functionality of all the issues that have been integrated that week. Developers submitting patches should always cover the patch with unit tests and/or Behat behavioural tests. Still, all issues are tested by a human and it is usually worth it.
QA regression testing
For versions up to 2.4 all the QA testing was conducted manually before each major release. This process will soon be replaced by a combination of automated systems (see below) and a more lightweight manual user acceptance testing (UAT) cycle involving the Moodle community prior to release.
Moodle 2.3 and later fully supports PHPUnit tests as part of the code. These are automated tests of very low-level code functionality that a developer should write as part of any new code.
Continuous integration testing
As soon as code is added to the integration repository, our continuous integration server tests the new code for:
- Coding guidelines
- PHPUnit tests
- SimpleTest unit tests on older versions of Moodle
- Detect unresolved merge conflicts
- Compare databases upgraded from previous versions
- Check the version.php is correct
A failure here notifies the integrators that the build has failed.
QA regression testing
Every day, an automated build in a test server runs a large number of tests concerning key functions of Moodle, to make sure that everything still works and that some new fix in Moodle hasn't caused problems elsewhere.
These tests must pass completely before a new release can be made.
- Acceptance testing using the Behat framework
- Performance testing using JMeter.
Moodle uses a sponsored version of BrowserStack for testing on multiple browsers.