คงเป็นเรื่องเสียเวลา ไม่สะดวก และน่าเบื่อ หากต้องทำการทดสอบการทำงาน ในระหว่างการพัฒนาระบบใดระบบหนึ่ง
PHP ก็มี Unit testนะครับ ลองดู project ดังต่อไปนี้ ไล่เรียงกันตามความนิยม
PHPUnit
น่าจะเป็นผู้นำในกลุ่ม PHP unit test port มาจาก JUnit
tutorial, PEAR::PHPUnit2
PHPUnit is an open source framework for test-driven development in any PHP-based code that automates unit testing and reduces the effort required to frequently test code while developing it.
sting PHP Code with PHPUnit
Simple Test for PHP
The following assumes that you are familiar with the concept of unit testing as well as the PHP web development language.
tutorial - Simple Test PHP Unit Test Framework
phpautotest
phpautotest has to be walked through your web-site once, it can then follow the same steps and report whether the pages did not work as expected.
ดูเหมือนว่า เกือบทั้งหมด ได้รับอิทธิพลมาจาก JUnit มามากทีเดียว ส่วน PHPUnit นั้น port มาจาก JUnit เต็มๆ เลย
Links
unit testing in php
PHP Unit Tests and the winner is phpt
Unit Test Tools - รวบรวมรายชื่อ uni test tools ไว้มากมาย
ไม่มีความเห็น