# How do you use ESIntegTestCase?

**URL:** <https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281>\
**Category:** Elasticsearch\
**Created:** [January 11, 2017, 9:43pm UTC](https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281 "2017-01-11T21:43:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonathanAaron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathanaaron/32/24405_2.png) [@JonathanAaron](https://discuss.elastic.co/u/JonathanAaron)\
**Post date:** [January 11, 2017, 9:43pm UTC](https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281/1 "2017-01-11T21:43:47Z")

</div>

Do I have to use an instance of elasticsearch with this or does this spin up a cluster/node all by itself?  
Would I be able to supply it mock data and query it like a normal elastic search node? Any good guides out there?

Thanks

Jonathan

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 12, 2017, 1:03am UTC](https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281/2 "2017-01-12T01:03:59Z")

</div>

It spins up a cluster all by itself. It is really designed for testing Elasticsearch plugins rather than client applications. Things like scripting and reindex won't be available. For client applications it is usually better to run against a real version of elasticsearch.

---

<div class="post-metadata">

**Author:** ![JonathanAaron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathanaaron/32/24405_2.png) [@JonathanAaron](https://discuss.elastic.co/u/JonathanAaron)\
**Post date:** [January 12, 2017, 1:38am UTC](https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281/3 "2017-01-12T01:38:42Z")

</div>

Gotcha, thanks Nik

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 9, 2017, 1:38am UTC](https://discuss.elastic.co/t/how-do-you-use-esintegtestcase/71281/4 "2017-02-09T01:38:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
