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?

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


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

Reply via email to