I worked on more unit tests for Zend_Db_Table/Row/Rowset today.  Code
coverage is now 95% for those classes.

Virtually all the unit tests for Zend_Db are in
<zf-home>/tests/Zend/Db/Adapter/Common.php.  The reason for this is that
test suite is already set up for testing against multiple RDBMS brands,
and I want to make sure that the various tests work against different
RDBMS's.

I still am not able to test against MS SQL Server in my environment,
which is not filling me with confidence.  But I can't afford to spend
more time on it right now.

Regards,
Bill Karwin


> -----Original Message-----
> From: Art Hundiak [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 20, 2007 5:58 AM
> To: Bill Karwin
> Cc: [email protected]
> Subject: RE: [fw-general] $db->setRowClass & $db->setRowsetClass
> 
> Excellent.  Kept hoping someone would say "Hey you dummy, the tests
are
> right here".
> >
> > Thanks for catching that bug, Art.
> >
> > For the record, there *are* unit tests for Zend_Db_Table/Row/Rowset.
> > The code coverage is 68%.  Look in
> > <zf-home>/tests/Zend/Db/Adapter/Common.php, there are 37 test
functions
> > matching "testTable*".
> >
> > I wish you would not say that there are no tests for these classes.
It
> > is a false statement.
> >
> > It is true that the line containing the bug was not covered by unit
> > tests.  But it is an exaggeration to say that there are no tests
> > covering the Table/Row classes.
> >
> > Regards,
> > Bill Karwin
> >
> >> -----Original Message-----
> >> From: Art Hundiak [mailto:[EMAIL PROTECTED]
> >>
> >> Almost as though the code was released without testing.  Which I
guess
> > is
> >> consistent with the fact that there are no DB_Table/Row tests in
the
> >> delivered version.
> >
> >
> 

Reply via email to