Using elasticsearch test classes for plugin development

Hi all,

The elasticsearch core tests have a bunch of very nice supporting classes, things like AbstractNodesTest, that make it easy to test stuff end-to-end via the Java client API. Is there anyway of exposing these for plugin development? Being test classes, they're not included in the default jar.

Thanks,

Alan Woodward

--

Hi Alan,

I'm afraid the only method applicable now is copy&paste. But it's a good
idea if a test framework jar was provided, with annotations and the like.

Best regards,

Jörg

On Thursday, January 24, 2013 5:34:00 PM UTC+1, Alan Woodward wrote:

Hi all,

The elasticsearch core tests have a bunch of very nice supporting classes,
things like AbstractNodesTest, that make it easy to test stuff end-to-end
via the Java client API. Is there anyway of exposing these for plugin
development? Being test classes, they're not included in the default jar.

Thanks,

Alan Woodward
www.flax.co.uk

--

Hi Alan,

I developped a small testing framework for elasticsearch, with annotations
and utility classes: GitHub - tlrx/elasticsearch-test: elasticsearch-test, a framework that makes elasticsearch unit testing a breeze.

It is used on several projects and works well. You can see an example class
using the EsSetpup object here;
https://github.com/tlrx/elasticsearch-test/blob/master/src/test/java/com/github/tlrx/elasticsearch/test/BasicTest.java

I'd love to see something similar provided by elasticsearch team.

-- Tanguy
@tlrx

Le jeudi 24 janvier 2013 17:34:00 UTC+1, Alan Woodward a écrit :

Hi all,

The elasticsearch core tests have a bunch of very nice supporting classes,
things like AbstractNodesTest, that make it easy to test stuff end-to-end
via the Java client API. Is there anyway of exposing these for plugin
development? Being test classes, they're not included in the default jar.

Thanks,

Alan Woodward
www.flax.co.uk

--

This looks perfect. Thanks, Tanguy!

On 25 Jan 2013, at 08:42, Tanguy wrote:

Hi Alan,

I developped a small testing framework for elasticsearch, with annotations and utility classes: GitHub - tlrx/elasticsearch-test: elasticsearch-test, a framework that makes elasticsearch unit testing a breeze.

It is used on several projects and works well. You can see an example class using the EsSetpup object here;
https://github.com/tlrx/elasticsearch-test/blob/master/src/test/java/com/github/tlrx/elasticsearch/test/BasicTest.java

I'd love to see something similar provided by elasticsearch team.

-- Tanguy
@tlrx

Le jeudi 24 janvier 2013 17:34:00 UTC+1, Alan Woodward a écrit :
Hi all,

The elasticsearch core tests have a bunch of very nice supporting classes, things like AbstractNodesTest, that make it easy to test stuff end-to-end via the Java client API. Is there anyway of exposing these for plugin development? Being test classes, they're not included in the default jar.

Thanks,

Alan Woodward
www.flax.co.uk

--