summaryrefslogtreecommitdiffstats
path: root/DEVELOP.rst
diff options
context:
space:
mode:
authorIryna Cherniavska <i.chernyavska@gmail.com>2015-07-02 16:12:19 -0700
committerIryna Cherniavska <i.chernyavska@gmail.com>2015-07-02 16:12:19 -0700
commitdaeff7798a6155150a91f74a6c1dd65785a8f32a (patch)
treebeb3a8fbb0784c03c26314f7308d4a25cd72903f /DEVELOP.rst
parent52c98d4d2db71504aa9aa65c3e2d77170fe46a57 (diff)
Added readme instructions and changed test user to postgres.
Diffstat (limited to 'DEVELOP.rst')
-rw-r--r--DEVELOP.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/DEVELOP.rst b/DEVELOP.rst
index 2daf4cb5..ed50f8cc 100644
--- a/DEVELOP.rst
+++ b/DEVELOP.rst
@@ -122,3 +122,33 @@ The rpm package can be installed as follows:
::
$ sudo yum install pgcli*.rpm
+
+Running the integration tests
+-----------------------------
+
+Integration tests use `behave package http://pythonhosted.org/behave/`_.
+Configuration settings for this package are provided via ``behave.ini`` file
+in root directory.
+
+The database user ``pg_test_user`` has to have permissions to create and drop
+test database. Dafault user is ``postgres`` at ``localhost``, without the
+password (authentication mode ****).
+
+First, install the requirements for testing:
+
+::
+
+ $ pip install -r requirements-dev.txt
+
+After that, tests can be run with:
+
+::
+
+ $ behave
+
+To see stdout/stderr, use the following command:
+
+::
+
+ $ behave --no-capture
+