Blame | Letzte Änderung | Log anzeigen | RSS feed
SimpleTest==========You probably got this package from...http://sourceforge.net/projects/simpletest/If there is no licence agreement with this package please downloada version from the location above. You must read and accept thatlicence to use this software. The file is titled simply LICENSE.What is it? It's a framework for unit testing, web site testing andmock objects for PHP 4.2.0+.If you have used JUnit you will find this PHP unit testing version verysimilar. Also included is a mock objects and server stubs generator.The stubs can have return values set for different arguments, can havesequences set also by arguments and can return items by reference.The mocks inherit all of this functionality and can also haveexpectations set, again in sequences and for different arguments.A web tester similar in concept to JWebUnit is also included. There is noJavaScript or tables support, but forms, authentication, cookies andframes are handled.You can see a release schedule at http://www.lastcraft.com/overview.phpwhich is also copied to the documentation folder with this release.A full PHPDocumenter API documentation exists athttp://simpletest.sourceforge.net/.The user interface is minimalin the extreme, but a lot of information flows from the test suite.After version 1.0 we will release a better web UI, but we are leaving XULand GTk versions to volunteers as everybody has their own opinionon a good GUI, and we don't want to discourage development by shippingone with the toolkit.You are looking at a first full release. The unit tests for SimpleTestitself can be run here...simpletest/test/unit_tests.phpAnd tests involving live network connections as well are here...simpletest/test/all_tests.phpThe full tests will typically overrun the 8Mb limit usually allowedto a PHP process. A workaround is to run the tests on the commandwith a custom php.ini file if you do not have access to your serverversion.You will have to edit the all_tests.php file if you are accesssingthe internet through a proxy server. See the comments in all_tests.phpfor instructions.The full tests read some test data from the LastCraft site. If the siteis down or has been modified for a later version then you will getspurious errors. A unit_tests.php failure on the other hand would bevery serious. As far as we know we haven't yet managed to check in anyunit test failures so please correct us if you find one.Even if all of the tests run please verify that your existing test suitesalso function as expected. If they don't see the file...HELP_MY_TESTS_DONT_WORK_ANYMOREThis contains information on interface changes. It also points outdeprecated interfaces so you should read this even if all ofyour current tests appear to run.There is a documentation folder which contains the core reference informationin English and French, although this information is fairly basic.You can find a tutorial on...http://www.lastcraft.com/first_test_tutorial.php...to get you started and this material will eventually become includedwith the project documentation. A French translation exists at...http://www.onpk.net/index.php/2005/01/12/254-tutoriel-simpletest-decouvrir-les-tests-unitaires.If you download and use and possibly even extend this tool, please let usknow. Any feedback, even bad, is always welcome and we will work to getyour suggestions into the next release. Ideally please send yourcomments to...simpletest-support@lists.sourceforge.net...so that others can read them too. We usually try to respond within 48hours.There is no change log as yet except at Sourceforge. You can visit therelease notes to see the completed TODO list after each cycle and also thestatus of any bugs, but if the bug is recent then it will be fixed in CVS only.The CVS check-ins always have all the tests passing and so CVS snapshots shouldbe pretty usable, although the code may not look so good internally.Oh, yes. It is called "Simple" because it should be simple touse. We intend to add a complete set of tools for a test firstand "test as you code" type of development. "Simple" does notmean "Lite" in this context.Thanks to everyone who has sent comments and offered suggestions. Theyreally are invaluable, but sadly you are too many to mention in full.Thanks to all on the advanced PHP forum on SitePoint, especially HarryFeucks. Early adopters are always an inspiration.yours Marcus Baker, Jason Sweat, Travis Swicegood and Perrick Penet.--marcus@lastcraft.com