# Working EsIntegrationTest example

**URL:** <https://discuss.elastic.co/t/working-esintegrationtest-example/108804>\
**Category:** Elasticsearch\
**Created:** [November 22, 2017, 10:52pm UTC](https://discuss.elastic.co/t/working-esintegrationtest-example/108804 "2017-11-22T22:52:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel-costigliola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joel-costigliola/32/24584_2.png) [@joel-costigliola](https://discuss.elastic.co/u/joel-costigliola)\
**Post date:** [November 22, 2017, 10:52pm UTC](https://discuss.elastic.co/t/working-esintegrationtest-example/108804/1 "2017-11-22T22:52:19Z")

</div>

Hi,

I really struggled to get a working EsIntegrationTest but finally did it, it would have been great to have that out of the box in ES, here's what I did (it should work with maven and gradle):

> **[joel-costigliola/elastic-search-test](https://github.com/joel-costigliola/elastic-search-test)**
>
> elastic-search-test - ESIntegTestCase example

Hope that helps  
Cheers

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 23, 2017, 2:17am UTC](https://discuss.elastic.co/t/working-esintegrationtest-example/108804/2 "2017-11-23T02:17:39Z")

</div>

That’s very cool Joel.

I’m wondering if this kind of information should go somewhere in our documentation?  
Like in the Java client documentation?

@nik9000 WDYT?

---

<div class="post-metadata">

**Author:** ![joel-costigliola](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joel-costigliola/32/24584_2.png) [@joel-costigliola](https://discuss.elastic.co/u/joel-costigliola)\
**Post date:** [November 23, 2017, 3:35am UTC](https://discuss.elastic.co/t/working-esintegrationtest-example/108804/3 "2017-11-23T03:35:39Z")

</div>

Hi David,

I would love to see it in a section of [https://www.elastic.co/guide/en/elasticsearch/reference/current/testing-framework.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/testing-framework.html), so that anyone who wants to use the test framework can start with working code.

My examples are a bit basic (and it uses AssertJ too), it could enhanced to show more how to benefit from the randomized testing capabilities.

I would also suggest to improve the error reported at bootstarpping time, some of them were not so clear and it took me a bit of time to find some workaround. I'm happy to describe them in more details if that helps.

Cheers,  
Joel

ps: J'ai failli te contacter directement David ! 😉

---

<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:** [December 21, 2017, 3:35am UTC](https://discuss.elastic.co/t/working-esintegrationtest-example/108804/4 "2017-12-21T03:35:44Z")

</div>

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