Hi
I want to write unit test cases using spock framework. I read there is ES unit testing framework. How to use that?? Also I need examples of using ESTestCase. Please guide
Hi
I want to write unit test cases using spock framework. I read there is ES unit testing framework. How to use that?? Also I need examples of using ESTestCase. Please guide
I don't run unit tests with elasticsearch but integration tests unless I'm writing features in elasticsearch project itself.
To run integration tests (not unit tests) you would probably prefer running that in something close to a production environment, like a real elasticsearch server instance. I shared some ideas about integration testing in this thread: In memory testing with RestHighLevelClient
Also this sample project shows how to use Elasticsearch Test Classes:
HTH
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.