[Solar-talk] Solar Testing via external test library

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon Oct 16 09:51:31 PDT 2006


On 10/16/06, Travis Swicegood wrote:
> I did so some basic testing with PHPUnit3, started on some of the Solar
> methods.  I ran into some limitations though in doing a SolarEnvironment
> test as I specifically need to be able to test for expected PHP errors.
> I can write my own assertError(), but I already knew that SimpleTest had
> it so I wanted to float the idea.

One of my interests right now is to setup an environment to integrate
tests / packaging / documentation building. I'm starting to use Phing,
and the idea is to abort a package build if one of the tests fails.
You can run your own separated processes to execute these tasks for a
release, but integrating everything with a builder makes the whole
process smoother, avoids repeated and boring work and it is easier to
modify and maintain.

With Phing (and I guess also with CruiseControl or Rephlux) it is
possible to integrate SimpleTest or PHPUnit3, and also to generate
test reports / code coverage reports with both.

I only wish Travis was a big PHPUnit3 fan so we would not have a
dilemma. :) Being one of the most interested in unit tests, and also
one of the experts on the subject among us, it would be great to count
with his work. I don't really mind which library to use; I tend to
prefer PHPUnit3 but available time and dedication should also be
considered, and based on this I would give Travis a +1 for SimpleTest,
but I give a +1 for PHPUnit3 as well. :)

rodrigo

---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------


More information about the solar-talk mailing list