SimpleTester 1.0 - CI-library for unit testing |
[eluser]ciscoheat[/eluser]
Merry Christmas! Here's a little gift for those who likes Unit Testing, especially the Simpletest framework. It's a very easy-to-use testing library for CI that wraps the Simpletest framework. The default installation should work immediately for most of you. Installation instructions: 1. Download SimpleTester 1.0 here: http://codeigniter.com/wiki/SimpleTester...g_library/ 2. Unzip file to the application folder. 3. Download the SimpleTest framework here: http://simpletest.org/en/download.html 4. Gunzip that file to application/libraries (a folder called "simpletest" should be created in application/libraries) 5. Add "simpletester" to autoloading libraries in config/autoload.php 6. Done! Run your application. If nothing happens, it works. ![]() 7. Now you can check out the template test files in application/tests, and the SimpleTester configuration file in config. Try to change a test in a template test file to see if the installation really works. By failing a test, a big red bar should appear on the top of the page. All test files goes into "application/tests", use the template files for a quicker start. Good luck! If you develop on a machine where PHP doesn't see the server IP as 127.0.0.1, you must change the configuration file to allow the IP your development machine has. That is about the only issue I can see right now. Comments, improvements, anything is welcome. And remember, test before you code! |
Welcome Guest, Not a member yet? Register Sign In |