Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests
jmontoyaa 5ffaf253c3 Behat: Add more questions to the test. 8 years ago
..
api
behat Behat: Add more questions to the test. 8 years ago
course_tests
datafiller format code 8 years ago
history
img
logs
main Minor - Format code, remove unused code 8 years ago
migrations/claroline/1.11.10
phpunit Remove unused functions 8 years ago
procedures/spanish
scripts Add script to fix lp items paths for missing files - refs BT#12381 8 years ago
simpletest
travis Add travis_wait and move config file. 8 years ago
video
xhprof Add get_memory_peak_usage() info to profile link 8 years ago
README.md
build.phing.xml
build.xml
chamilotest.php
index.html
internationalization.lib.test_standalone.php
main_api.lib.test_standalone.php
phpDocumentor.ini
phpmd.xml
rmdirr.lib.test_standalone.php
run.sh
simpletest_to_junit.xsl
test_manager.inc.php
test_suite.php Fix use of course_info/download.php 8 years ago
test_webservices.php
wipe-out.php

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