Presentation: Behat testing in Moodle
By: Tom Dickman
Behat is a BDD framework for PHP to help you test business expectations.
Source: Behat testing
By: Tom Dickman
Behat is a BDD framework for PHP to help you test business expectations.
Source: Behat testing
The goal of this project is to facilitate the running of tests and code analysis against a Moodle plugin in Travis CI. All of these tests and tools are run everytime a change is pushed to a GitHub branch or pull request.
Why would you want to do this? It saves you from having to remember to setup and run PHPUnit, Behat, code checker, etc every single time you make a change. If you have enough test coverage, it also makes accepting pull requests painless because you can be more confident that the change wont break anything. There are many more advantages to using a service like Travis CI, like being able to test your code against multiple databases, multiple PHP versions, etc.
This project supports the following testing frameworks and code analysis tools:
Source: Introduction | Moodle Plugin CI
At the Australia Moot, Daymon Wiese, a Moodle HQ developer, gave a talk on how to automate testing in Moodle for Administrators. Underlying the need for testing in Moodle is the idea that any chang…
מקור: How To Automate Testing For Moodle Administrators | Moodle News