elasticsearch/docs/reference/docs
Nik Everett 4b1c116461 Generate and run tests from the docs
Adds infrastructure so `gradle :docs:check` will extract tests from
snippets in the documentation and execute the tests. This is included
in `gradle check` so it should happen on CI and during a normal build.

By default each `// AUTOSENSE` snippet creates a unique REST test. These
tests are executed in a random order and the cluster is wiped between
each one. If multiple snippets chain together into a test you can annotate
all snippets after the first with `// TEST[continued]` to have the
generated tests for both snippets joined.

Snippets marked as `// TESTRESPONSE` are checked against the response
of the last action.

See docs/README.asciidoc for lots more.

Closes #12583. That issue is about catching bugs in the docs during build.
This catches *some* bugs in the docs during build which is a good start.
2016-05-05 13:58:03 -04:00
..
bulk.asciidoc Update bulk.asciidoc 2016-04-22 10:51:33 -06:00
delete.asciidoc Remove delete-by-query core docs 2015-08-01 05:14:46 -04:00
get.asciidoc Update get.asciidoc 2016-04-22 10:48:58 -06:00
index_.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
multi-get.asciidoc Update multi-get.asciidoc 2014-11-08 13:55:23 +01:00
multi-termvectors.asciidoc percolator: renamed percolator query to percolate query 2016-04-20 15:23:54 +02:00
reindex.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
termvectors.asciidoc percolator: renamed percolator query to percolate query 2016-04-20 15:23:54 +02:00
update-by-query.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
update.asciidoc Update update.asciidoc 2016-04-22 10:50:42 -06:00