Sha256: 9b9629850f6c0171fe411b095838944edeb6740ea1eff3c584069b14c5f35da6

Contents?: true

Size: 1.83 KB

Versions: 24

Compression:

Stored size: 1.83 KB

Contents

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

Before you do anything, read the TESTING file.

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

24 entries across 24 versions & 8 rubygems

Version Path
ydbd-pg-0.6.0 test/DBD_TESTS
ydbi-0.6.0 test/DBD_TESTS
ydbd-pg-0.5.9 test/DBD_TESTS
ydbd-pg-0.5.8 test/DBD_TESTS
ydbd-pg-0.5.7 test/DBD_TESTS
ydbi-0.5.7 test/DBD_TESTS
ydbd-pg-0.5.6 test/DBD_TESTS
ydbd-pg-0.5.5 test/DBD_TESTS
ydbd-pg-0.5.4 test/DBD_TESTS
ydbd-pg-0.5.3 test/DBD_TESTS
ydbd-pg-0.5.2 test/DBD_TESTS
ydbd-pg-0.5.1 test/DBD_TESTS
ydbi-0.5.0 test/DBD_TESTS
rails-dbd-mysql-0.1.0 test/DBD_TESTS
dbd-mysql-0.4.4 test/DBD_TESTS
dbd-pg-0.3.9 test/DBD_TESTS
dbd-sqlite3-1.2.5 test/DBD_TESTS
dbd-sqlite-0.1.2 test/DBD_TESTS
dbd-pg-0.3.8 test/DBD_TESTS
dbd-odbc-0.2.5 test/DBD_TESTS