# Running a specific integration test

**URL:** https://discuss.elastic.co/t/running-a-specific-integration-test/6105
**Category:** Elasticsearch
**Created:** [December 9, 2011, 3:08am UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105 "2011-12-09T03:08:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Erick\_Tryzelaar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erick_tryzelaar/32/3036_2.png) [@Erick\_Tryzelaar](https://discuss.elastic.co/u/Erick_Tryzelaar)
#### Post date: [December 9, 2011, 3:08am UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105/1 "2011-12-09T03:08:47Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)
#### Post date: [December 9, 2011, 9:21am UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105/2 "2011-12-09T09:21:40Z")

</div>

It is possible:

[http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html](http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html)

> <https://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven>

... 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](mailto: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](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

---

<div class="post-metadata">

### Author: ![Alex\_Marandon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_marandon/32/1657_2.png) [@Alex\_Marandon](https://discuss.elastic.co/u/Alex_Marandon)
#### Post date: [April 8, 2014, 2:36pm UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105/3 "2014-04-08T14:36:09Z")

</div>

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

> It is possible:
> 
> [Maven Surefire Plugin – Running a Single Test](http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html)[http://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](http://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](http://stackoverflow.com/questions/1873995/run-a-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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 8, 2014, 3:02pm UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105/4 "2014-04-08T15:02:14Z")

</div>

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.com](mailto:alex.marandon@gmail.com)wrote:

> On Friday, 9 December 2011 10:21:40 UTC+1, Karussell wrote:
> 
> > It is possible:
> > 
> > [Maven Surefire Plugin – Introduction](http://maven.apache.org/plugins/maven-surefire-plugin/)  
> > examples/single-test.html[http://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](http://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](http://stackoverflow.com/questions/1873995/run-a-)  
> > 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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/3465d32d-ca52-4482-83b6-45d55751a12b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8bA4u3gQ2%3D9SE9ZkFkchu7dE-usTzsZSK2fUKBtTkeCA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:37am UTC](https://discuss.elastic.co/t/running-a-specific-integration-test/6105/5 "2017-07-06T01:37:34Z")

</div>


