You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Benjamin Jakobus edited this page Apr 9, 2014
·
9 revisions
**Note: ** You must have PHPUnit installed before proceeding.
Create a new database: moodle_unit_testing
Edit /etc/apache2/sites-available/default-ssl and insert the following:
Alias /moodle-unit-testing "/path/to/moodle/moodle-unit-testing/"
<Directory /path/to/moodle/moodle-unit-testing/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Restart apache using sudo service apache2 restart
Install a new moodle instance by navigating your browser to: https://localhost/moodle-unit-testing. Configure it to use the database created in step 1.
Install the ibmsbt block
Go to moodle-unit-testing/blocks/ibmsbt/tests
To run the unit tests, use the following command: **phpunit --coverage-html ./report *_test.php **