Use the quote crate and quote! 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, or quote! may be used to generate the entire test.
In a similar vein to other official clients, a YAML test runner should be implemented, to run the YAML spec tests.
Possible implementation
tests
directory inelasticsearch
crate for integration testsyaml-rust
crate to read YML files.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.