Moodle Selenium Test

Re: Moodle Selenium Test

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Leaping in here ...

I suspect we won't have time to package this up for the community until May, once we have got our first ou moodle release finished.

It is probably not a lot of work, but there are some issues to sort out, like where to put the various files.

  • The testcases themselves we have put in folders called 'simpletest', with filenames like text_xxx.php, so you have a /lib/simpletest/testdatalib.php
  • Then there are the simpletest libraries, which we will have to move into a subfolder of lib.
  • Then there is the testing infrastructure, which basically crawls the directory tree (or a subset of it) looking for all the files called **/simpletest/test*.php, and runs the tests they contain (with various options) and displays the results prettily. At the moment we put this in a '_tools/runsimpletest' top level folder, but we may want to rethink that.
However, on the good news site, I have started writing some tests for datalib.