jmontoyaa 64bde06f4b Minor - format code, remove unused functions пре 8 година
..
api 4116a6b100 merge пре 10 година
course_tests 2deb9f0bdb attempting restore of tests dir removed during bigmerge пре 13 година
datafiller b362d92fe2 format code пре 8 година
features 9416e1ce05 Fix Behat tests пре 8 година
history 4116a6b100 merge пре 10 година
img 2deb9f0bdb attempting restore of tests dir removed during bigmerge пре 13 година
logs 4116a6b100 merge пре 10 година
main 64bde06f4b Minor - format code, remove unused functions пре 8 година
migrations 0f817c8234 Add users migration to Claroline migration script пре 9 година
phpunit 53b9eb410f Clean file, format code, пре 9 година
procedures 2deb9f0bdb attempting restore of tests dir removed during bigmerge пре 13 година
scripts b4d115dfc8 Minor - Ignore variations of minor messages in packaging script пре 8 година
simpletest 0bf06d9c72 Minor - Updated phpdoc tags пре 12 година
video 49d6dfed77 Add small video conversion script. Might be useful for other things пре 9 година
xhprof 4bc0810e2b Fix relative path for Xhprof reporting link пре 10 година
README.md fde6c7ccb4 Update readme.md for run the Behat tests пре 8 година
behat.yml bac9946d81 Fixing behat context пре 8 година
build.phing.xml f6096b1b2c Updating paths see #7522 пре 10 година
build.xml f6096b1b2c Updating paths see #7522 пре 10 година
chamilotest.php 2deb9f0bdb attempting restore of tests dir removed during bigmerge пре 13 година
index.html 2deb9f0bdb attempting restore of tests dir removed during bigmerge пре 13 година
internationalization.lib.test_standalone.php fa59e31b48 Minor - format code, updating license reference. пре 10 година
main_api.lib.test_standalone.php 0bf06d9c72 Minor - Updated phpdoc tags пре 12 година
phpDocumentor.ini 4116a6b100 merge пре 10 година
phpmd.xml 4116a6b100 merge пре 10 година
rmdirr.lib.test_standalone.php 0bf06d9c72 Minor - Updated phpdoc tags пре 12 година
run.sh c1bc14ec81 More changes to build file пре 12 година
simpletest_to_junit.xsl 4116a6b100 merge пре 10 година
test_manager.inc.php ba818ee23e Refactoring: move main/exercice/ to main/exercise/ and related folders (except code for migration from 1.9 and 1.10) пре 8 година
test_suite.php 4a6e788589 Remove visio code, replaced by plugins (bbb, openmeetings) пре 8 година
test_webservices.php 4116a6b100 merge пре 10 година
travis-apache eebc1a4006 Minor - travis tests пре 10 година
travis-php-config.ini f20bc20b96 Minor - Update travis config 7 пре 8 година
wipe-out.php 4a9ff38162 Fix home path. пре 9 година

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

features

Behat-specific folder

history

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

logs

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

main

Deprecated PHPUnit code reflecting the internal code structure of Chamilo

migrations

Combination of unofficial scripts to execute migrations from other systems

phpunit

Deprecated PHPUnit code

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.

simpletest

Deprecated SimpleTest code (unused since 2009)

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