Re: Unit tests

Serge Huber <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hi Benjamin,

Unfortunately we don't... I've been wanting to set this up for a long 
time. Basically the main barrier for introducing unit tests in Jahia is 
the fact that the ParamBean object requires request and response 
objects, and that the ParamBean is used just about everywhere. I wanted 
to refactor the ParamBean to build a superclass that wouldn't require 
this so that we could build unit tests.

It might also be possible to achieve this with Mock objects, but I'm not 
familiar with them yet. But anyway the creation of a ParamBean 
superclass without request/response pairs would be a great improvement 
to the back-end.

Also such changes will only happen in the HEAD branch, as they will 
impact quite a lot of classes.

Regards,
  Serge Huber.

[email protected] wrote:

>
> It would interest me, if you already have some automatic unit tests in 
> place and if they are also available to the community? As we sometimes 
> have to do some modifications to the Jahia source codes, we would like 
> to use those tests, to see, whether our modifications did break some 
> other functionality.
>
> Benjamin Papez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.