Hello;

> Possible. Yes you should be able to run tests against different DB's, running 
> Maven build with -Dcayenne.test.connection=postgres (3.0) or 
> -DcayenneTestConnection=postgres (3.1)  per 
> http://cayenne.apache.org/running-unit-tests.html

I just had some time to try to resolve this, but am having trouble stopping it 
from using HSQLDB;

        mvn test \
        -Dcayenne.test.connection=postgres \
        -DcayenneJdbcUsername=apl \
        -DcayenneJdbcUrl=jdbc:postgresql://localhost/cayennetests \
        -DcayenneJdbcDrg.postgresql.Driver \
        -DcayenneAdapter=org.apache.cayenne.dba.postgres.PostgresAdapter

^^^ does that look approximately right for 3.0-STABLE?

It seems to get the PG driver from the repository and then just uses...

> INFO: test connection info: [org.apache.cayenne.conn.DataSourceInfo:
>    user name: sa
>    password: **********
>    driver: org.hsqldb.jdbcDriver
>    db adapter class: org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
>    url: jdbc:hsqldb:mem:aname
>    min. connections: 1
>    max. connections: 1
> ]


...anyway.

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

Reply via email to