Sha256: 2e4e1bef0a10ef67d3faff4d500016881f1b09d93b46569998a2192b3acd7c82

Contents?: true

Size: 1.79 KB

Versions: 16

Compression:

Stored size: 1.79 KB

Contents

================================================================================
Using DBD tests
================================================================================

Create a YAML file named .ruby-dbi.test-config.yaml in your home directory.

This file is a hash of keys that determine what you want to test and how you
access the databases related to those tests.

The key 'dbtypes' is an array which determines what tests you want to run. They
*do not* correspond to the driver names, they correspond to the test
directories that were made for them.

Each 'dbtype' has a key that contains a hash of values:
    - username: the username of your account
    - password: the password for your account
    - dbname: the name of the database to connect to

NOTE that tests expect to connect to a database on localhost currently. This
may be fixed in the future, especially when we start writing Oracle and
SQLServer tests.

Each DBD test relies on database semantics which may not match up entirely with
this configuration. For instance, the postgresql tests expect you to be able to
work with the database directly via the `psql' client. This is something which
will eventually be remedied as time and ability allows.

Here is a sample configuration to get you started with the postgresql tests:

################################################################################

---
dbtypes:
    - postgresql
postgresql:
    username: erikh
    password: monkeys
    dbname: rubytest 

################################################################################

NOTE the --- is part of the file and is not a separator.

================================================================================
Writing DBD tests
================================================================================

Coming soon.

Version data entries

16 entries across 16 versions & 6 rubygems

Version Path
dbd-odbc-0.2.4 test/DBD_TESTS
dbd-pg-0.3.3 test/DBD_TESTS
dbd-odbc-0.2.2 test/DBD_TESTS
dbd-mysql-0.3.3 test/DBD_TESTS
dbd-mysql-0.4.0 test/DBD_TESTS
dbd-mysql-0.4.1 test/DBD_TESTS
dbd-mysql-0.4.2 test/DBD_TESTS
dbd-pg-0.3.4 test/DBD_TESTS
dbd-pg-0.3.5 test/DBD_TESTS
dbd-odbc-0.2.3 test/DBD_TESTS
dbd-sqlite-0.1.1 test/DBD_TESTS
dbd-sqlite-0.1 test/DBD_TESTS
dbd-sqlite3-1.2.3 test/DBD_TESTS
dbd-sqlite3-1.2.2 test/DBD_TESTS
dbd-sqlanywhere-0.1.1 test/DBD_TESTS
dbd-sqlanywhere-0.1.2 test/DBD_TESTS