Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --postgres and --elasticsearch arguments to runtests.py #1914

Merged
merged 5 commits into from Nov 30, 2015

Conversation

kaedroho
Copy link
Contributor

@kaedroho kaedroho commented Nov 9, 2015

This makes testing a little easier.

For example, to run tests without scrapping the DB, you currently have to run:

DATABASE_BACKEND=django.db.backends.postgresql_psycopg2 python runtests.py --keepdb

This PR shortens this to:

python runtests.py --postgres --keepdb

Also, we no longer automatically run ES tests if elasticsearch-py is installed. Meaning that this library can now be installed by all developers and most ES tests can be run

The Elasticsearch tests now depend on an environment variable being set so we can safely install elasticsearch-py without Wagtail automatically assuming Elasticsearch is installed and running the tests.

This makes developer setup slightly easier, but also opens up the possibility for running some of the ES tests that don't depend on a running ES instance.
We now only skip tests that actually require a running Elasticsearch instance.

This also greatly cleans up the elasticsearch test suite.
kaedroho added a commit that referenced this pull request Nov 30, 2015
Add --postgres and --elasticsearch arguments to runtests.py
@kaedroho kaedroho merged commit 06cba80 into wagtail:master Nov 30, 2015
@kaedroho kaedroho deleted the runtests-args branch December 1, 2015 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants