Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Acceptance testing: Difference between revisions

From MoodleDocs
m (t_po, missing y)
m (Protected "Acceptance testing": Developer Docs Migration ([Edit=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Moodle uses a framework called Behat to automatically test the user-interface. Tests can be written for each plugin, and for Moodle core.
{{Template:Migrated|newDocId=/general/development/tools/behat/}}
 
* To run the existing tests, read [[Running acceptance test]]. You really need to do this first.
* To write new tests, read [[Writing acceptance tests]].
* To define new steps that can you used when writing tests, see [[Writing new acceptance test step definitions]]
 
Because Behat tests work through the Moodle user interface, they are a bit slow. Therefore, you should probably also use [[PHPUnit]] to test the detailed edge cases in your code.
 
[[Category:Behat]]

Latest revision as of 02:12, 13 September 2023

Important:

This content of this page has been updated and migrated to the new Moodle Developer Resources. The information contained on the page should no longer be seen up-to-date.

Why not view this page on the new site and help us to migrate more content to the new site!