# What's the gradlew command to run integration tests for the x-pack watcher module?

**URL:** <https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 6, 2018, 4:32am UTC](https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721 "2018-06-06T04:32:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adhulipa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adhulipa/32/31881_2.png) [@adhulipa](https://discuss.elastic.co/u/adhulipa)\
**Post date:** [June 6, 2018, 4:32am UTC](https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721/1 "2018-06-06T04:32:21Z")

</div>

I tried running `λ ./gradlew x-pack:plugin:watcher:integTest` but that doesn't seem to do anything.  
I'm new to `gradle` so I'm not sure if I'm doing something wrong.

---

<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:** [June 6, 2018, 7:32am UTC](https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721/2 "2018-06-06T07:32:18Z")

</div>

Hey,

try `./gradlew x-pack:plugin:watcher:test`

--Alex

---

<div class="post-metadata">

**Author:** ![adhulipa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adhulipa/32/31881_2.png) [@adhulipa](https://discuss.elastic.co/u/adhulipa)\
**Post date:** [June 8, 2018, 5:54am UTC](https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721/3 "2018-06-08T05:54:38Z")

</div>

> [@spinscale](#):
>
> ./gradlew x-pack:plugin:watcher:test

Thanks, @spinscale! that solved my problem.

I'd also like to add (for anybody who may also have this question) that running `./gradlew :x-pack:plugin:integTestRunner -Dtests.class=org.elasticsearch.xpack.test.rest.XPackRestIT -Dtests.method="test {p0=watcher/*}"` is also an option.

---

<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, 2018, 5:54am UTC](https://discuss.elastic.co/t/whats-the-gradlew-command-to-run-integration-tests-for-the-x-pack-watcher-module/134721/4 "2018-07-06T05:54:47Z")

</div>

Closed on July 6, 2018, 5:54am UTC

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