You probably know we have the automated tests in Chamilo 1.8.8 LMS (a few thousands, actually), that guarantee a better quality of delivery. But sometimes you might wonder how to actually run those tests, so you can be an official Chamilo tester too.
How to run the tests
The short answer is you only have to run one command (and you might even load a page in your browser). The long answer, however, is quite longer. Here is a simple procedure on how to do that.
- Install Mercurial code versioning system on your computer
- Download Chamilo classic’s development version with Mercurial (hg command): hg clone https://classic.chamilo.googlecode.com/hg/ chamilo-classic
- Install Chamilo (yeah, that the most annoying part, but hopefully you’re a developer so you also know how to do that)
- Navigate to http://localhost/chamilo-classic/tests/test_suite.php to load the tests from your browser
- Alternatively, go to the tests directory of your Chamilo installation and type in a terminal: php5 test_suite.php
Why it matters
While we might have those tests running on our development server automatically and regularly (every 2 hours as of this post), it is important that other people try running the tests on other architectures, so that we ensure that Chamilo effectively runs on a series of infrastructure before we publish a new version, and not only on our development servers. Indeed, it might work on a GNU/Linux Debian distribution, but fail (because of the change of context) on a Windows computer.
If you would like to help us testing on different infrastructures, let us know, we will happily share the testing code with you and publish a reference to your testing infrastructure.