Closed
Description
In a similar vein to other official clients, a YAML test runner should be implemented, to run the YAML spec tests.
Possible implementation
- Create a
tests
directory inelasticsearch
crate for integration tests - Use the
yaml-rust
crate to read YML files. - Use the
quote
crate andquote!
macro to generate client calls to pass to the compiler based on calls defined within the YML test. The macro could generate a function that is called from another function containing the assertions, orquote!
may be used to generate the entire test.