Testing is vital to the development of any new feature (in any software application), so it is important to outline the two main testing tools used by Moodle developers. They are as follows:
- PHPUnit
- Behat
PHPUnit can be considered technical testing, that is, does the feature do what it should? Behat is behavioral testing , that is, can a user achieve what they need given a particular intention? They sound similar, but the approaches are very different (hence the support of both types of testing).
In this appendix, we provide a basic outline of the features of each--enough to get you up and running. Luckily, there is plenty of support and advice available for both tools online. Check out the developer documentation at https://docs.moodle.org/dev/Testing for more details.