mirror of
https://github.com/dbcli/pgcli.git
synced 2024-09-11 13:56:36 +03:00
Added readme instructions and changed test user to postgres.
This commit is contained in:
parent
52c98d4d2d
commit
daeff7798a
30
DEVELOP.rst
30
DEVELOP.rst
@ -122,3 +122,33 @@ The rpm package can be installed as follows:
|
|||||||
::
|
::
|
||||||
|
|
||||||
$ sudo yum install pgcli*.rpm
|
$ 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
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[behave.userdata]
|
[behave.userdata]
|
||||||
pg_test_user = behave_user
|
pg_test_user = postgres
|
||||||
pg_test_pass =
|
pg_test_pass =
|
||||||
pg_test_host = localhost
|
pg_test_host = localhost
|
||||||
pg_test_db = pgcli_behave_tests
|
pg_test_db = pgcli_behave_tests
|
||||||
|
Loading…
Reference in New Issue
Block a user