On Monday 15 May 2006 16:25, Paul McNett wrote:
> johnf wrote:
> > I wonder has anyone written anything to test the DB interfaces.  I
> > appears that psycopg2 is working but I have very limited ways to test. 
> > Of course the appWizard is working with my data.  And my small test
> > program works but I still have doubts.
>
> No, unit tests are non-existent, but it has been on my radar screen for
> a long time. We need to set up a unit testing framework, and then
> subject the classes and methods of each tier to black-box unit testing.
> What I mean by that is that if we are testing dBizobj, we'll test
> against a dummy dConnection and backend. If we are testing the ui, we'll
> test against a dummy dBizobj. For the db modules, we'd be testing
> against the live backends but we'd presumably have test databases set up
>   for the test framework to interact with.
>
> Each method in each class needs to be tested to make sure it does what
> it says it does. I think doctest would be essential for this, but I
> don't want the doctests cluttering the source files.
>
> Any volunteers out there that want to take this on?

I have never written any "real" unit test programs.  I attempted to a couple 
of times but ran right into the GUI testing issues (VFP programming).   How 
does one black box test the GUI?  OK you want to test the dBizobj.  That 
might work.  I'll look into it - but I say up front I have no experience 
designing or creating real unit test.  I'll have to review what is out there 
and hope the info will provided insights.

John

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to