Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Split dependencies of backends during tests. #80

Merged
merged 3 commits into from
Aug 10, 2017

Conversation

cmc333333
Copy link
Member

We've been testing with both the haystack and elastic dependencies installed
at once. This will be a problem when working with the postgres backend because
it requires a specific version of Django. We'd like to keep testing the other
versions of Django with haystack and elastic, so we need to set up a framework
for testing separate backends with different dependencies installed.

We've been testing with both the haystack and elastic dependencies installed
at once. This will be a problem when working with the postgres backend because
it requires a specific version of Django. We'd like to keep testing the other
versions of Django with haystack and elastic, so we need to set up a framework
for testing separate backends with different dependencies installed.
Importing a `storage` had been triggering a call to `ElasticSearch`. Delaying
until first use resolves this problem (which is particularly problematic in
testing).
@coveralls
Copy link

Coverage Status

Coverage decreased (-10.2%) to 83.113% when pulling 41ccb98 on 475-backend-test-split into 63a9b91 on master.

@cmc333333
Copy link
Member Author

Coverage drop is misleading -- depending on tox config, different branches of code are tested. I'm not sure how to resolve that at the moment...

Different test runs may exercise different chunks of code. To get a final code
coverage metric, we need to aggregate the results.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 93.348% when pulling ba3ecd1 on 475-backend-test-split into 63a9b91 on master.

@cmc333333
Copy link
Member Author

Thanks @tadhg-ohiggins

@cmc333333 cmc333333 merged commit 0d78af4 into master Aug 10, 2017
cmc333333 pushed a commit that referenced this pull request Aug 10, 2017
Breaking Changes
  * #79 "django.contrib.contenttypes" is now included in library's base
    settings. If copying these over, you'll need to deduplicate.

New Features
  * #79 Allow search handler to be defined via `SEARCH_HANDLER` setting
  * #83 Allow search results page size to be requested
  * #82 Add Postgres backend for search. See README for details.

Misc
  * #77 Allow ALLOWED_HOSTS to be set via env vars
  * #78 Use webargs library for checking search input
  * #80 Test different backends in different tox envs
  * #81 Remove QuantifiedCode badge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants