[Owncloud] Switching to PHPUnit

Thomas Müller thomas.mueller at tmit.eu
Thu Oct 4 13:18:18 UTC 2012


What about restructuring the repo directories?

www/ or src/ to keep the real code which will be hosted within a web server
tests/ where the test cases live

future directories:
bin/ to store scripts for e.g. password reset tool etc.
build/ scripts related to packaging / releasing like bundle the tar or script for the developers for code analysis (php lint, PHP_CodeSniffer ....)

This will help to serve only that stuff via the web server which only is required to.
There is no need to execute a test case in the browser - it might be a security issues with that as well.

Take care,

Tom aka DeepDiver


Am Mittwoch, dem 03.10.2012 um 22:06 schrieb Robin Appelman:
> Currently we use SimpleTest for out unit tests inside ownCloud, while this 
> works fine for basic usage from the browser or the ci server, it lacks the tool 
> support that phpunit has.
> 
> I've done most of the work of switching to phpunit in the phpunit branch and 
> I'm planning to merge it after the release.
> 
> Currently the main work of the migration is done using a small compatibility 
> layer for SimpleTest on top of phpunit, this is sufficient at the moment but in 
> the long run the test cases should be converted to phpunit properly.
> 
>  - Robin Appelman
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list