[Owncloud] regarding quality

Thomas Müller thomas.mueller at tmit.eu
Tue Jul 3 12:32:25 UTC 2012


Am Dienstag, dem 03.07.2012 um 14:09 schrieb Sam Tuke:
> On Saturday 30 Jun 2012 22:52:48 eMerzh wrote:
> > May be the automatic test (with a good coverage!) may help us here..
> > but we have a loooong job to make everything testable :/
> 
> Exactly.
> 
> ownCloud development is moving extremely fast - developing at this speed 
> without unit tests understandably results in many bugs.
> 
> There are currently very few unit tests and very few people writing unit tests 
> because it is currently so difficult to write them. We should aim for all devs 
> to be writing unit tests by default, because its easy, and because it makes 
> their development process more efficient. 
> 
> To achieve this we need better documentation (both manual in inline), and 
> refactoring to reduce the prevalence of close coupling and singleton objects. 
> Currently these make writing unit tests painful.
> 
> Refactoring isn't glamorous, but it will make OC simpler to work with, more 
> testable, and easier to contribute to.
>
> Whilst we're on the subject, can I ask why we're using simpletest rather than 
> PHPUnit?
>

I'd like to jump in on this as well and point out that code coverage with PHPUnit will work out of the box.
With simpletest some custom coding is necessary (and recycling of PHPUnit-Code ;-))

In addition PHPUnit has some support for BDD-Testing afaik - which could help building up the acceptance test suite.

Tom
 
> Best,
> 
> Sam.



More information about the Owncloud mailing list