diff --git a/docs/settings/local_settings.dev.py b/docs/settings/local_settings.dev.py index df9cdccb06..8d6f5ba8ac 100644 --- a/docs/settings/local_settings.dev.py +++ b/docs/settings/local_settings.dev.py @@ -9,3 +9,6 @@ DEBUG_TOOLBAR_PATCH_SETTINGS = False # Prevent DDT from patching the settings. INTERNAL_IPS = ('127.0.0.1',) MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) + +# RUN_ES_TESTS = True # Uncomment to run ES tests (Elasticsearch need + # to be installed). diff --git a/docs/topics/hacking/testing.rst b/docs/topics/hacking/testing.rst index c799daa4af..1f39de19c7 100644 --- a/docs/topics/hacking/testing.rst +++ b/docs/topics/hacking/testing.rst @@ -18,6 +18,11 @@ thing you'll need to ensure is that the database credentials in your settings has full permissions to modify a database with ``test_`` prepended to it. By default the database name is ``olympia``, so the test database is ``test_olympia``. +Optionally, in particular if the code you are working on is related to search, +you'll want to run Elasticsearch tests. For this, you need to set the setting +``RUN_ES_TESTS=True``. Obviously, you need Elasticsearch to be installed. See +:ref:`elasticsearch` page for details. + Running Tests ------------- diff --git a/settings_ci.py b/settings_ci.py index 327c334217..3302035dd3 100644 --- a/settings_ci.py +++ b/settings_ci.py @@ -1,3 +1,4 @@ from settings import * # noqa LOG_LEVEL = logging.ERROR +RUN_ES_TESTS = True