Thread Previous • Date Previous • Date Next • Thread Next |
Wouter (and others),After watching the database.new testcases and reading the PHPUnit documentation, I was wondering if sqlite (and postgresql) tests aren't too high level. The PHPUnit documentation suggests keeping tests as low level as possible, preferably on a single-method level. The sqlite tests however go as high as AnewtDatabase and SQLTemplate. Shouldn't those things be tested in their own testsuite?
Of course there is the problem where two things work fine separately, but when combined, cause an error. I don't know any good examples of this though.
Also you should watch out with inheritance. A base class can implement a method which works fine, and a subclass might *not* overload that method, it should still probably still be tested. That, or the base method should be tested well enough to account for variations in subclasses.
Any thoughts? -- Sander
Thread Previous • Date Previous • Date Next • Thread Next |