From eb1a9e74b93ab675ec568b4b21342d5bbbf9e369 Mon Sep 17 00:00:00 2001 From: joetsoi Date: Mon, 4 Nov 2013 10:12:09 +0000 Subject: [PATCH] [#1304] update docs on 'reset-db' test option --- doc/test.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/test.rst b/doc/test.rst index cdd9b928e0a..f9d2f6bc805 100644 --- a/doc/test.rst +++ b/doc/test.rst @@ -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 `_. +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: