Yannick Warnier aa7f11a430 Changed name and updated README for tests dir 8 жил өмнө
..
api 4116a6b100 merge 10 жил өмнө
course_tests 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 жил өмнө
datafiller 58855b62b7 Changing status with groups. 8 жил өмнө
features 6d60781ae4 Use id selectors for buttons in forum tool 8 жил өмнө
history 4116a6b100 merge 10 жил өмнө
img 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 жил өмнө
logs 4116a6b100 merge 10 жил өмнө
main 496c64f518 Merge with 1.11.x 8 жил өмнө
migrations 0f817c8234 Add users migration to Claroline migration script 9 жил өмнө
phpunit 90c2b27cc6 Remove unused code. 8 жил өмнө
procedures 2deb9f0bdb attempting restore of tests dir removed during bigmerge 13 жил өмнө
scripts 77f9c3e46e Fix wrong session_rel_user.duration bug see #8205 8 жил өмнө
simpletest 0bf06d9c72 Minor - Updated phpdoc tags 11 жил өмнө
translations c29e8ba2e9 Replace domain name from "all" to "messages" (default name in symfony2) 9 жил өмнө
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 aa7f11a430 Changed name and updated README for tests dir 8 жил өмнө
behat.yml 0bc4e8fa33 Tests: added basic Behat tests 9 жил өмнө
build.phing.xml f6096b1b2c Updating paths see #7522 9 жил өмнө
build.xml f6096b1b2c Updating paths see #7522 9 жил өмнө
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 11 жил өмнө
phpDocumentor.ini 4116a6b100 merge 10 жил өмнө
phpmd.xml 4116a6b100 merge 10 жил өмнө
rmdirr.lib.test_standalone.php 0bf06d9c72 Minor - Updated phpdoc tags 11 жил өмнө
run.sh c1bc14ec81 More changes to build file 12 жил өмнө
simpletest_to_junit.xsl 4116a6b100 merge 10 жил өмнө
test_manager.inc.php c65c332677 Move permissions folder insde main/blog see #1369 8 жил өмнө
test_suite.php 0bf06d9c72 Minor - Updated phpdoc tags 11 жил өмнө
test_webservices.php 4116a6b100 merge 10 жил өмнө
travis-apache eebc1a4006 Minor - travis tests 9 жил өмнө
travis-php-config.ini 303cd995f8 Attempt at improving travis testing and doing an automated Chamilo install 9 жил өмнө
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 -v

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