Re: [fw-general] Hooking your unit tests into the overall structure

2007-03-14 Thread Nico Edtinger
I'm not a phpunit pro, but normally it's very easy. There's a file  
called AllTests.php in the test root and every subdirectory and they  
are chained together (AllTests.php is included and called by  
AllTests.php in its parent directory).


You'd normally just add your testcase files to the AllTests.php file  
and if had to create a new one you add it to the parent one.


I just did what everyone else did in the existing files. If you need  
any configuration there's the file TestConfiguration.php.dist and  
TestConfiguration.php in the test root. The last one is ignored by  
svn and used if both exists. Just add some sane defaults to  
TestConfiguration.php.dist and your actual test configuration to the  
other.


nico

[14.03.2007 14:58] Chris Hartjes wrote:

This is probably a very stupid question that I have been unable to
find the answers for, so feel free to educate me and point out where I
went wrong.

I'm trying to get Zend_Service_Audioscrobbler included in 0.9.0, and
it's 99% there.  The last thing I need to do is get my unit tests
"hooked in" to the unit tests for the entire framework.  How do I do
that?

Any help is greatly appreciated.

--
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard




[fw-general] Hooking your unit tests into the overall structure

2007-03-14 Thread Chris Hartjes

This is probably a very stupid question that I have been unable to
find the answers for, so feel free to educate me and point out where I
went wrong.

I'm trying to get Zend_Service_Audioscrobbler included in 0.9.0, and
it's 99% there.  The last thing I need to do is get my unit tests
"hooked in" to the unit tests for the entire framework.  How do I do
that?

Any help is greatly appreciated.

--
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard