Testing
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access