New SimpleTest implementation |
[eluser]Eric Barnes[/eluser]
For those looking to integrate simpletest into CodeIgniter check out my codeigniter-simpletest integration here: http://github.com/ericbarnes/codeigniter-simpletest A lot of the ideas came from: http://jamieonsoftware.com/blog/entry/se...nvironment and the design from: http://ellislab.com/forums/viewthread/12...10/#697201 At any rate hopefully someone will find it useful and if you have any questions or comments let me know.
[eluser]danspam[/eluser]
Hey eric, I just came across this. Looks like you have managed to pull together a great implementation of a testing environment. Now I just need to write some tests! Thanks for sharing this Dan
[eluser]danspam[/eluser]
One thing I have discovered however is that simpletest 1.01 is not compatible with php 5.3. You need to use the beta 1.1 version in the svn. There are also a few minor things that need changing in your code to get it working with 5.3.
[eluser]Eric Barnes[/eluser]
Can you share what changes needed to be made in the code for 5.3? I am developing on 5.2 and not looking to upgrade just yet.
[eluser]danspam[/eluser]
Sure, You of course need to replace the simpletest folder with version 1.1 available from the simpletest svn and then add your my_reporter.php file in. As far as changes to unit_test.php, there are two things that I came across. Firstly constructors are not called with parent::theClassName(). It should be done with parent::_construct(); Secondly the $test->addTestFile() is just $test->addFile() in version 1.1 I think that was all that needed changing. Hope that helps Dan
[eluser]P.T.[/eluser]
This doesn't work anymore in 2.0? Tried, but it shows the index page. (The default router)
[eluser]Unknown[/eluser]
I have the same problem as P.T is seems that if your default controller do a redirect it doesn't work and show the default controller instead .... Does someone have an idea on how to avoid this ?
|
Welcome Guest, Not a member yet? Register Sign In |