Running a specific integration test

I'm pretty new to java, maven, and the elasticsearch source, but I'd
like to implement sorting with missing string values
(https://github.com/elasticsearch/elasticsearch/issues/1529). Is it
possible to run a specific sort integration tests with maven? "mvn
integration-test" helps, but still takes a while to run through the
test suite.

Thanks,
Erick

It is possible:

http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html

... but easier if you are using an IDE (like NetBeans ;)) where you
can visually and faster select and run/debug a test+method.

Regards,
Peter.

On 9 Dez., 04:08, Erick Tryzelaar erick.tryzel...@gmail.com wrote:

I'm pretty new to java, maven, and the elasticsearch source, but I'd
like to implement sorting with missing string values
(https://github.com/elasticsearch/elasticsearch/issues/1529). Is it
possible to run a specific sort integration tests with maven? "mvn
integration-test" helps, but still takes a while to run through the
test suite.

Thanks,
Erick

On Friday, 9 December 2011 10:21:40 UTC+1, Karussell wrote:

It is possible:

Maven Surefire Plugin – Running a Single Testhttp://www.google.com/url?q=http%3A%2F%2Fmaven.apache.org%2Fplugins%2Fmaven-surefire-plugin%2Fexamples%2Fsingle-test.html&sa=D&sntz=1&usg=AFQjCNGZmEOlv7GgGLzLlscGY82yGfiGYw

java - Run a single test method with maven - Stack Overflow

Is this advice still valid?

I've tried different variations of the mvn test command with no luck so
far. Example :

$ ES_TEST_LOCAL=true mvn test
-Dtest=SimpleValidateQueryTests#simpleValidateQuery
[INFO] Scanning for projects...
[...]
Executing 501 suites with 3 JVMs.

[...]
Suite: org.elasticsearch.search.aggregations.bucket.GeoDistanceTests
[...]

Can you give me a cli example of executing a specific test? Or do I have to
use an IDE?

Thanks,
Alex

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

please checkout the TESTING.asciidoc in the main folder of the source.
tests.class is the parameter you are searching for.

--Alex

On Tue, Apr 8, 2014 at 4:36 PM, Alex Marandon alex.marandon@gmail.comwrote:

On Friday, 9 December 2011 10:21:40 UTC+1, Karussell wrote:

It is possible:

Maven Surefire Plugin – Introduction
examples/single-test.htmlhttp://www.google.com/url?q=http%3A%2F%2Fmaven.apache.org%2Fplugins%2Fmaven-surefire-plugin%2Fexamples%2Fsingle-test.html&sa=D&sntz=1&usg=AFQjCNGZmEOlv7GgGLzLlscGY82yGfiGYw
java - Run a single test method with maven - Stack Overflow
single-test-method-with-maven

Is this advice still valid?

I've tried different variations of the mvn test command with no luck so
far. Example :

$ ES_TEST_LOCAL=true mvn test
-Dtest=SimpleValidateQueryTests#simpleValidateQuery
[INFO] Scanning for projects...
[...]
Executing 501 suites with 3 JVMs.

[...]
Suite: org.elasticsearch.search.aggregations.bucket.GeoDistanceTests
[...]

Can you give me a cli example of executing a specific test? Or do I have
to use an IDE?

Thanks,
Alex

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8bA4u3gQ2%3D9SE9ZkFkchu7dE-usTzsZSK2fUKBtTkeCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.