I do not know about Chamilo 1, I've only worked on Chamilo 2 codebase.

You can run the tests via phing.

Since not everybody can install phing, phpunit etc on his machine , I've embedded all of it in the codebase.

When you're in the project directory type :

#php ./script/phing.php <target> to run the tests.

Possible targets are listed in build.xml but here are the ones related to testing :
-> phpunit : runs unit tests
-> phpunit-no-reports (I'm not sure this is gramatically correct :p ): runs unit + integration tests but do not produce any report file. Currently integration tests are the big part of my work. It's a single test suite trying to require every class file on its own to check if there is no syntax error and the class is able to find its dependencies through autoloaders. -> phpunit-coverage : runs all the tests and produces a test report and a coverage report.

This last target is used on the Continuous Integration server which you can find here : http://hephaistos.vinci.be:8080/job/Chamilo2/ (I've just changed the CI server and I've a little problem with phpCodeBrowser for the moment but you can still see the results of the tests)

I'm a bit slow to write tests because a lot of code is written in a way that it build it's dependency (instead of asking for it) so it's hard to write tests which do not need a full environment to work)

Phil

On 13/01/11 16:52, dev-requ...@lists.chamilo.org wrote:
Send Dev mailing list submissions to
        dev@lists.chamilo.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.chamilo.org/listinfo/dev
or, via email, send a message with subject or body 'help' to
        dev-requ...@lists.chamilo.org

You can reach the person managing the list at
        dev-ow...@lists.chamilo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dev digest..."


Today's Topics:

    1. Re: PostgreSQL support (Peter Bex)
    2. Re: PostgreSQL support (Yannick Warnier)
    3. Re: Internship_organizer-application problem (Yannick Warnier)
    4. Re: PostgreSQL support (Peter Bex)
    5. Re: Internship_organizer-application problem (Peter Bex)
    6. Re: PostgreSQL support (Yannick Warnier)
    7. Re: PostgreSQL support (Peter Bex)
    8. Re: PostgreSQL support (Peter Bex)
    9. Re: PostgreSQL support (Yannick Warnier)
   10. Re: PostgreSQL support (Peter Bex)


_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev
_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

Reply via email to