Re: tests

Christian Stocker <[email protected]> Mon, 27 Feb 2006 11:51:45 +0100
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 27.2.2006 11:47 Uhr, qMax wrote:
> Monday, February 27, 2006, 3:43:32 PM, Christian Stocker wrote:
>>> Interesting, if it's possible to make some tests to cover main functionality of each module
>>> (w/out setting them up in cms and clicking all buttons manualy) ?
>>> This could help alot...
> 
> CS> We started once with a testing framework. See inc/bx/tests/ for more
> 
> IIRC they are web-tests, checking modules installed and configured on
> live site, so to check all modules they still need to be set up.

Some are just traditional unit tests for testing methods and classes, 
others are webtests. I assume, you mean with "checking modules", 
checking methods/functions/classes.  test/test_of_bx_helpers_string.php 
is an example for that (but it's just testing static methods, so that 
was an easy one)

> Is it possible to use PEAR::Unit2 test framework for off-line testing ?

We decided to use SimpleTest <http://www.lastcraft.com/simple_test.php> 
instead of PEAR::Unit2. It's almost the same as PHPUnit2, but has this 
excellent webtesting stuff additionally. Therefore I don't think, we 
need the PHPUnit testing framework, but can do everything as well with 
the SimpleTest framework.

chregu


-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms