# Elasticsearch testing question

**URL:** <https://discuss.elastic.co/t/elasticsearch-testing-question/16923>\
**Category:** Elasticsearch\
**Created:** [April 10, 2014, 1:06pm UTC](https://discuss.elastic.co/t/elasticsearch-testing-question/16923 "2014-04-10T13:06:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 10, 2014, 1:06pm UTC](https://discuss.elastic.co/t/elasticsearch-testing-question/16923/1 "2014-04-10T13:06:18Z")

</div>

For testing Elasticsearch, have you ever thought of doing two runs of the  
junit4 plugin? One to grab the fast unit tests first and one to grab the  
integration tests? I know most of the tests are integration tests but you  
might be able to squeeze some speed out of the process by parallelizing the  
unit tests. Maybe some of the integration tests can be parallelized too?

Nik

--  
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/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb\_TA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb_TA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 10, 2014, 11:05pm UTC](https://discuss.elastic.co/t/elasticsearch-testing-question/16923/2 "2014-04-10T23:05:31Z")

</div>

Hey Nikolas,

You can run the tests in parallel by specifying -Dtests.jvms=${number of  
tests to run concurrently} The default has been 1 for a very long time but  
Simon recently changed it so that it now picks a number that depends on  
your number of CPUs. For instance I have 8 CPUs here and by default it  
would start 4 JVMs.

Moreover, since the beginning of the week, some (enough so that the speedup  
is noticeable) of our integration tests are faster since instead of  
indexing documents on every test, they are only indexed at the beginning of  
the test suite.

You might also be interested in running with -Dtests.slow=true which is  
supposed to only run the fast tests. It can be helpful when iterating on a  
feature to get a sense of whether a change broke something. (The default is  
false.)

On Thu, Apr 10, 2014 at 3:06 PM, Nikolas Everett [nik9000@gmail.com](mailto:nik9000@gmail.com) wrote:

> For testing Elasticsearch, have you ever thought of doing two runs of the  
> junit4 plugin? One to grab the fast unit tests first and one to grab the  
> integration tests? I know most of the tests are integration tests but you  
> might be able to squeeze some speed out of the process by parallelizing the  
> unit tests. Maybe some of the integration tests can be parallelized too?
> 
> Nik
> 
> --  
> 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/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb\_TA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb_TA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb\_TA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb_TA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 11, 2014, 12:00am UTC](https://discuss.elastic.co/t/elasticsearch-testing-question/16923/3 "2014-04-11T00:00:17Z")

</div>

Cool. Thanks!

On Thu, Apr 10, 2014 at 7:05 PM, Adrien Grand \<  
[adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com)\> wrote:

> Hey Nikolas,
> 
> You can run the tests in parallel by specifying -Dtests.jvms=${number of  
> tests to run concurrently} The default has been 1 for a very long time but  
> Simon recently changed it so that it now picks a number that depends on  
> your number of CPUs. For instance I have 8 CPUs here and by default it  
> would start 4 JVMs.
> 
> Moreover, since the beginning of the week, some (enough so that the  
> speedup is noticeable) of our integration tests are faster since instead of  
> indexing documents on every test, they are only indexed at the beginning of  
> the test suite.
> 
> You might also be interested in running with -Dtests.slow=true which is  
> supposed to only run the fast tests. It can be helpful when iterating on a  
> feature to get a sense of whether a change broke something. (The default is  
> false.)
> 
> On Thu, Apr 10, 2014 at 3:06 PM, Nikolas Everett [nik9000@gmail.com](mailto:nik9000@gmail.com)wrote:
> 
> > For testing Elasticsearch, have you ever thought of doing two runs of the  
> > junit4 plugin? One to grab the fast unit tests first and one to grab the  
> > integration tests? I know most of the tests are integration tests but you  
> > might be able to squeeze some speed out of the process by parallelizing the  
> > unit tests. Maybe some of the integration tests can be parallelized too?
> > 
> > Nik
> > 
> > --  
> > 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/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb\_TA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb_TA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb\_TA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0t1-kD0uvyMkaKM%3D0TX48DkRcon4x4gedXjF%3DeETb_TA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien Grand
> 
> --  
> 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/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4ACR2bswL2V0hciMWr4dSxQA3bDrjOPy9C89SkuaxEAw%40mail.gmail.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/CAPmjWd0tqxa3JJBMDVWDiwMWiDrB5QW%2B8PY4Vo%3DzQ\_zu5j%2BtUQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0tqxa3JJBMDVWDiwMWiDrB5QW%2B8PY4Vo%3DzQ_zu5j%2BtUQ%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:36am UTC](https://discuss.elastic.co/t/elasticsearch-testing-question/16923/4 "2017-07-06T01:36:41Z")

</div>


