The lack of responses leads me to think not many people are writing tests. Anyhow, I decided to test everything.
It doesn’t take long to copy and adapt the tests for tableName, relations and rules for each new class.
My controller tests are fairly basic. Essentially looking for a piece of text on the rendered page. I’ll supplement them with functional tests later.
It is very satisfying to run the tests and have everything come up green. I’m going to try and develop the next part of the project by writing the tests first. Looking forward to it.
No, there is no need to test most of the framework code since it’s already covered well. Of course, if you want to help us writing tests for framework itself it will be much appreciated. You can review tests here: http://code.google.com/p/yii/source/browse/#svn/trunk/tests
Controllers testing is mostly functional testing task.