Yannick Warnier aa7f11a430 Changed name and updated README for tests dir | 8 years ago | |
---|---|---|
.. | ||
api | 10 years ago | |
course_tests | 13 years ago | |
datafiller | 8 years ago | |
features | 8 years ago | |
history | 10 years ago | |
img | 13 years ago | |
logs | 10 years ago | |
main | 8 years ago | |
migrations | 9 years ago | |
phpunit | 8 years ago | |
procedures | 13 years ago | |
scripts | 8 years ago | |
simpletest | 12 years ago | |
translations | 9 years ago | |
video | 9 years ago | |
xhprof | 10 years ago | |
README.md | 8 years ago | |
behat.yml | 9 years ago | |
build.phing.xml | 9 years ago | |
build.xml | 9 years ago | |
chamilotest.php | 13 years ago | |
index.html | 13 years ago | |
internationalization.lib.test_standalone.php | 10 years ago | |
main_api.lib.test_standalone.php | 12 years ago | |
phpDocumentor.ini | 10 years ago | |
phpmd.xml | 10 years ago | |
rmdirr.lib.test_standalone.php | 12 years ago | |
run.sh | 12 years ago | |
simpletest_to_junit.xsl | 10 years ago | |
test_manager.inc.php | 9 years ago | |
test_suite.php | 12 years ago | |
test_webservices.php | 10 years ago | |
travis-apache | 9 years ago | |
travis-php-config.ini | 9 years ago | |
wipe-out.php | 9 years ago |
This directory is used for all kinds of tests and scripts and is removed from public releases as it may represent a risk for production systems.
The current automated tests are developed using Behat. To run them, you will need a basic default installation of the corresponding version of Chamilo LMS, which should include the vendor/behat/behat/bin/behat executable.
Make sure you set the right base_url in behat.yml, then run (on the command line, from the tests/ directory):
../vendor/behat/behat/bin/behat -v
This should run all tests and all of them should pass.
Although many scripts here are deprecated, the current structure can be described as follows;
The scripts available at the root are mostly deprecated. behat.yml (see Behat section) serves as the configuration for the Behat test suite.
Folder meant as the destination for documentation automatically generated by running PHPDoc. It only contains a README file by default.
Set of scripts to fill your test installation of Chamilo with demo content.
Behat-specific folder
Attempt at keeping a track of what Chamilo looked like over time.
Meant as a destination for all logs generated by automated testing and building scripts. Should be writeable whenever tests (other than behat) are run (clover and stuff like that). Initially used when Chamilo was using its own Jenkins setup (now it tries to use Travis-CI).
Deprecated PHPUnit code reflecting the internal code structure of Chamilo
Combination of unofficial scripts to execute migrations from other systems
Deprecated PHPUnit code
xls spreadsheets to be used as base for manual quality review of features in Chamilo.
A collection of scripts used to fix or improve some things globally in Chamilo portals. Mostly for old versions.
Deprecated SimpleTest code (unused since 2009)
Scripts to help with the move from Chamilo-format translations to PO (gettext)
Scripts to handle mass operations on video files.
Scripts to enable the use of the XHprof profiler (with these, you only need a small change to your PHP config to enable profiling each Chamilo page).