summaryrefslogtreecommitdiffstats
path: root/DEVELOP.rst
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2018-03-28 14:33:07 -0400
committerAndrew Kuchling <amk@amk.ca>2018-03-28 14:33:07 -0400
commit8eef6bb42f7f4ed70049aa2ec277da074fe34965 (patch)
treedf0b09a2a7f5792396ca05c507e493f43e1ba38c /DEVELOP.rst
parent56b820d38ed3510fb864b303b67199cfac07dfce (diff)
Give an example behave.ini
Diffstat (limited to 'DEVELOP.rst')
-rw-r--r--DEVELOP.rst16
1 files changed, 12 insertions, 4 deletions
diff --git a/DEVELOP.rst b/DEVELOP.rst
index 6f8031bc..504ad3af 100644
--- a/DEVELOP.rst
+++ b/DEVELOP.rst
@@ -112,11 +112,19 @@ Running the integration tests
Integration tests use `behave package <http://pythonhosted.org/behave/>`_ and
pytest.
-Configuration settings for this package are provided via ``behave.ini`` file
-in the ``tests`` directory.
+Configuration settings for this package are provided via a ``behave.ini`` file
+in the ``tests`` directory. An example::
-The database user (``pg_test_user = postgres`` in .ini file) has to have
-permissions to create and drop test database. Default user is ``postgres``
+ [behave]
+ stderr_capture = false
+
+ [behave.userdata]
+ pg_test_user = dbuser
+ pg_test_host = db.example.com
+ pg_test_port = 30000
+
+The database user has to have
+permissions to create and drop test databases. Default user is ``postgres``
at ``localhost``, without the password (authentication mode trust).
First, install the requirements for testing: