Working EsIntegrationTest example

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):

Hope that helps
Cheers

1 Like

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?

Hi David,

I would love to see it in a section of 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 ! :wink:

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