Skip site navigation (1) Skip section navigation (2)

Re: Status of JDBC test suite?

From: Anders Bengtsson <ndrsbngtssn(at)yahoo(dot)se>
To: Liam Stewart <liams(at)redhat(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Status of JDBC test suite?
Date: 2001-08-29 18:08:58
Message-ID: Pine.LNX.4.33.0108291952330.1867-100000@sensenet.localdomain (view raw or flat)
Thread:
Lists: pgsql-jdbc
On Wed, 29 Aug 2001, Liam Stewart wrote:

> > > Would a brief How-to help?
> >
> > Yes! :)
>
> I assume that you're wondering about the JDBC 2 test suite from Sun.
> I've attached a note that has some detailed instructions on getting the
> suite to work with PostgreSQL. Rene, do you want to post this on your
> PostgreSQL JDBC page?

Actually, we're not talking about Sun's test suite. :-) But now that you
mention it...

> I think that most, if not all, of the tests in the JDBC suite need to
> connect to a database.

Could Sun's tests be used as a kind of regression tests as well? Then
their tests could be the only black-box test suite we'll need!

> Maybe it would be worthwhile to build our own small unit test suite? Can
> you explain your idea in more detail?

There is already a small unit test suite in the CVS. But it haven't been
kept up to date with recent changes in the drivers, and it's a bit hard
to use (thus the need for a how-to).
The tests use the tool JUnit (http://www.junit.org), that is originally
intended for one-class-at-a-time testing. On their site is a lot of good
texts about this kind of unit testing.

/Anders
_____________________________________________________________________
A n d e r s  B e n g t s s o n                   ndrsbngtssn(at)yahoo(dot)se
Stockholm, Sweden


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


In response to

Responses

pgsql-jdbc by date

Next:From: Liam StewartDate: 2001-08-29 18:16:50
Subject: Re: Status of JDBC test suite?
Previous:From: Barry LindDate: 2001-08-29 17:58:11
Subject: Re: Status of JDBC test suite?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group