Julio Montoya 85aa745256 Minor - format code 5 năm trước cách đây
..
behat 5f14b9defb Minor - Update from 1.11.x 5 năm trước cách đây
datafiller 2e1607c206 Updating from 1.11.x, ckeditor plugins 5 năm trước cách đây
history 8731571503 Documentation: Add database schemas for 1.9, 1.10 and 1.11 (big MB footprint, sorry) 7 năm trước cách đây
img 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 năm trước cách đây
migrations 0f817c8234 Add users migration to Claroline migration script 9 năm trước cách đây
phpstan 85aa745256 Minor - format code 5 năm trước cách đây
procedures 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 năm trước cách đây
scripts acd7065030 Add fix #2346 5 năm trước cách đây
travis d4a41d6e3a Minor - travis remove php5 calls 5 năm trước cách đây
video d1b37f34fe Minor - Add license refs + change dirname(__FILE__) to __DIR__ (about 4 times faster). See http://stackoverflow.com/questions/2749416/is-there-any-difference-between-dir-and-dirname-file-in-php 7 năm trước cách đây
xhprof f19255ee5e Minor - change style 7 năm trước cách đây
README.md 8fd4492cff Remove unused test code #1750 7 năm trước cách đây
build.phing.xml f6096b1b2c Updating paths see #7522 9 năm trước cách đây
index.html 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 năm trước cách đây
phpDocumentor.ini 4116a6b100 merge 10 năm trước cách đây
phpmd.xml 4116a6b100 merge 10 năm trước cách đây
wipe-out.php d1b37f34fe Minor - Add license refs + change dirname(__FILE__) to __DIR__ (about 4 times faster). See http://stackoverflow.com/questions/2749416/is-there-any-difference-between-dir-and-dirname-file-in-php 7 năm trước cách đây

README.md

Chamilo 1.11.x tests directory

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.

Behat integration testing

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 behat/features/login.feature
../vendor/behat/behat/bin/behat behat/features/createUser.feature
../vendor/behat/behat/bin/behat behat/features/createCourse.feature
../vendor/behat/behat/bin/behat behat/features/courseTools.feature
../vendor/behat/behat/bin/behat behat/features/forum.feature
../vendor/behat/behat/bin/behat behat/features/socialGroup.feature
../vendor/behat/behat/bin/behat behat/features/accessCompanyReports.feature

This should run all tests and all of them should pass.

Folders

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.

api folder

Folder meant as the destination for documentation automatically generated by running PHPDoc. It only contains a README file by default.

datafiller

Set of scripts to fill your test installation of Chamilo with demo content.

behat

Behat-specific folder

history

Attempt at keeping a track of what Chamilo looked like over time.

migrations

Combination of unofficial scripts to execute migrations from other systems

procedures

xls spreadsheets to be used as base for manual quality review of features in Chamilo.

scripts

A collection of scripts used to fix or improve some things globally in Chamilo portals. Mostly for old versions.

translations

Scripts to help with the move from Chamilo-format translations to PO (gettext)

video

Scripts to handle mass operations on video files.

xhprof

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).