PHProjekt 6 is being developed including unit tests of a big percentage of the code. Currently more than 80% of code is covered by tests and it will grow up before first release. It includes creation, edition and deletion of users, projects, todo and any kind of items available on PHProjekt 6. Also includes tests of specific methods like save tags, search functions and all kind of actions.
Each developer that creates a new method or class is in charge of creating his respective tests using the Pear unit test library. The software will be distributed with his tests, and every user will be able to run them locally.
For testing it will provide a test database with a suite on test information. Currently we have more than 150 individual tests that check several cases of wrong information and invalid data.
One important point of testing is the inclusion of controllers testing, checking the application from the client side, and reproducing the dojo client request in the same way that the browser does. E.g. the test reproduces the user login with each variant of error (invalid user, invalid pass, inactive user, etc).
At last, each bug reported by users (if you find any bug

) will be included on the test suite to prevent the error occurs again.
These tests will definitely help us developers to work in a sustainable way, and for sure it will help PHProjekt 6 to have less bugs