# How to do more extensive unit testing

**URL:** <https://discuss.elastic.co/t/how-to-do-more-extensive-unit-testing/213240>\
**Category:** Logstash\
**Created:** [December 28, 2019, 2:29am UTC](https://discuss.elastic.co/t/how-to-do-more-extensive-unit-testing/213240 "2019-12-28T02:29:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Seel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_seel/32/53421_2.png) [@Brian\_Seel](https://discuss.elastic.co/u/Brian_Seel)\
**Post date:** [December 28, 2019, 2:29am UTC](https://discuss.elastic.co/t/how-to-do-more-extensive-unit-testing/213240/1 "2019-12-28T02:29:13Z")

</div>

I am doing some extensive data enrichment in my logstash pipeline, where I pull in data from a rest endpoint, generate 50-100 events, and need to enrich each event with data from a text file I load into memory. This all works fine.

I want to do more unit testing, which is more extensive than what seems to work well in the pre-load tests. I can do this with ruby's unit test framework, but I also want to be able to test event generation. I need the logstash-core gem for this (which I have), but it requires manticore.

I must be doing something wrong, because I can see manticore in my environment (gem list), but it always complains that its not there when i try to install logstash-core

```
brian@DESKTOP-TFD9NL6:/mnt/c/Users/brian/Downloads/logstash-master/logstash-master/build/logstash-8.0.0-SNAPSHOT/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java$ gem list

***LOCAL GEMS***

did_you_mean (1.2.0)
manticore (0.6.4 java)
minitest (5.10.3)
net-telnet (0.1.1)
openssl_pkcs8_pure (0.0.0.2)
power_assert (0.2.7)
rake (12.3.1)
test-unit (3.2.5)
brian@DESKTOP-TFD9NL6:/dev/logstash-8.0.0-SNAPSHOT/vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java$ gem install /mnt/c/Users/brian/Downloads/logstash-core-7.3.1-java.gem

ERROR: Could not find a valid gem 'manticore' (~> 0.6) (required by '/mnt/c/Users/brian/Downloads/logstash-core-7.3.1-java.gem' (>= 0)) in any repository
ERROR: Possible alternatives: MINT-core, ant-core, antinode, anvil-core, fat_core

```

I feel like I am doing this kind of testing wrong. How am I supposed to be doing this?

---

<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:** [January 25, 2020, 2:29am UTC](https://discuss.elastic.co/t/how-to-do-more-extensive-unit-testing/213240/2 "2020-01-25T02:29:22Z")

</div>

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