summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-20 01:10:21 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-20 01:14:41 +0000
commit7fe7b669aa9b554baac64818353f1bf0801c4f05 (patch)
tree4e326faab92f55bcab04916f14a710cdae57f9a5 /INSTALL
parent6f51eefac3b6fccbec530ab80aa222b1cbfc8a58 (diff)
downloadpsycopg2-7fe7b669aa9b554baac64818353f1bf0801c4f05.tar.gz
Added instructions about running tests and building docs.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL39
1 files changed, 39 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index f28be4c..2e9c86e 100644
--- a/INSTALL
+++ b/INSTALL
@@ -35,6 +35,45 @@ libpq-fe.h: No such file or directory
include_dirs variable (and note that a working pg_config is better.)
+Running the test suite
+======================
+
+The included Makefile allows to run all the tests included in the
+distribution. Just use:
+
+ make
+ make runtests
+
+The tests are run against a database called psycopg2_test on unix socket
+and standard port. You can configure a different database to run the test
+by setting the environment variables:
+
+- PSYCOPG2_TESTDB
+- PSYCOPG2_TESTDB_HOST
+- PSYCOPG2_TESTDB_PORT
+- PSYCOPG2_TESTDB_USER
+
+The database should be created before running the tests.
+
+The standard Python unittest is used to run the tests. But if unittest2 is
+found it will be used instead, with the result of having more informations
+about skipped tests.
+
+
+Building the documentation
+==========================
+
+In order to build the documentation included in the distribution, use
+
+ make env
+ make docs
+
+The first command will install all the dependencies (Sphinx, Docutils) in
+an 'env' directory in the project tree. The second command will build both
+the html format (in the 'doc/html' directory) and in plain text
+(doc/psycopg2.txt)
+
+
Using setuptools and EasyInstall
================================