From 9015d0ca73d8b7cfff6c839b643ab3367e411531 Mon Sep 17 00:00:00 2001
From: andrejserafim <andrejserafim@gmail.com>
Date: Tue, 1 Dec 2015 16:33:46 +0000
Subject: Fix REST test command line instructions

Closes #15154
---
 TESTING.asciidoc | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

(limited to 'TESTING.asciidoc')

diff --git a/TESTING.asciidoc b/TESTING.asciidoc
index da238c3437..569c16b074 100644
--- a/TESTING.asciidoc
+++ b/TESTING.asciidoc
@@ -286,11 +286,20 @@ The REST layer is tested through specific tests that are shared between all
 the elasticsearch official clients and consist of YAML files that describe the
 operations to be executed and the obtained results that need to be tested.
 
-The REST tests are run automatically when executing the maven test command. To run only the
+The REST tests are run automatically when executing the "gradle check" command. To run only the
 REST tests use the following command:
 
 ---------------------------------------------------------------------------
-gradle integTest -Dtests.filter="@Rest"
+gradle :distribution:tar:integTest   \
+  -Dtests.class=org.elasticsearch.test.rest.RestIT
+---------------------------------------------------------------------------
+
+A specific test case can be run with
+
+---------------------------------------------------------------------------
+gradle :distribution:tar:integTest \
+  -Dtests.class=org.elasticsearch.test.rest.RestIT \
+  -Dtests.method="test {p0=cat.shards/10_basic/Help}"
 ---------------------------------------------------------------------------
 
 `RestNIT` are the executable test classes that runs all the
-- 
cgit v1.2.3

