Unit Testing and Continuous Integration |
Hi,
I want to add Unit testing to my CI projects. I have seen there is ci-phpunit-test from kenjis. It seems nice however I came across TOAST and I quite like the 5 criteria that led to its creation:
I am not sure that ci-phpunit-test matches number 4. What are your thoughts about Unit Testing ? What tools do you use ? Going forward I want to perform continuous integration: any experiences on that ? I am thinking of using Jenkins. Cheers, L.
I'm probably a little biased on this, having worked on CodeIgniter Testing Guide with Kenji. I think the whole premise of #4 is problematic, because you shouldn't be running tests in your production environment (except perhaps before it goes live), and it usually isn't difficult to have access to the CLI at least in your development environment.
Anyway, while I haven't attempted it, it should be possible to implement a browser interface to run tests through PHPUnit/ci-phpunit-test installed.
Hi,
If you really value #1, ci-phpunit-test does not fit you. Because ci-phpunit-test includes thrid-party libraries, now it has 294 php files in the Zip archive. And more, you need to install PHPUnit. About #4, you can run ci-phpunit-test/phpunit via your browser if you use VisualPHPUnit. |
Welcome Guest, Not a member yet? Register Sign In |