Skip to content

Commit

Permalink
[#1304] update docs on 'reset-db' test option
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Nov 4, 2013
1 parent 0205723 commit eb1a9e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/test.rst
Expand Up @@ -65,6 +65,15 @@ The speed of the PostgreSQL tests can be improved by running PostgreSQL in
memory and turning off durability, as described
`in the PostgreSQL documentation <http://www.postgresql.org/docs/9.0/static/non-durability.html>`_.

By default the tests will keep the database between test runs. If you wish to
drop and reinitialize the database before the run you can use the ``reset-db``
option::

nosetests --ckan --reset-db --with-pylons=test-core.ini ckan

If you are have the ``ckan-migration`` option on the tests will reset the
reset the database before the test run.


.. _migrationtesting:

Expand Down

0 comments on commit eb1a9e7

Please sign in to comment.