Why wouldn't you want to use some sort of integration testing to test the results from the queries?
Jul 24, 2015
2
Level 1
Unit testing Elasticsearch queries
Right now all of our unit tests talk to MySQL and Elasticsearch. I'm working on moving the tests over to using a mix of DB mocks and SQLIte, but I'm curious how you all work with unit testing Elasticsearch.
I know I could just overload the Elastic handlers in our app with mocks, but that wouldn't really test anything, because who knows if the queries in the code actually work or not.
Please or to participate in this conversation.