From 8eef6bb42f7f4ed70049aa2ec277da074fe34965 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Wed, 28 Mar 2018 14:33:07 -0400 Subject: Give an example behave.ini --- DEVELOP.rst | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'DEVELOP.rst') 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 `_ 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: -- cgit v1.2.3