Skip to main content

engine_test

Attribute Macro engine_test 

Source
#[engine_test]
Expand description

Registers a connector suite case of dbsp_connectors, a function of &dyn ConnectorTestEngine or &dyn PipelineTestEngine, so that the test harness of every engine runs it as one test.

The arguments, all optional: serial runs the case alone among the serial cases; ignore or ignore = "reason" skips it unless ignored tests are asked for; ignore_if(predicate) or ignore_if(predicate, "reason") skips it where the cfg predicate holds; should_panic = "text" expects a panic whose message contains the text; requires(Capability, ...) ignores it on an engine that lacks one of the capabilities; services(Service, ...) names the services outside the test binary that it uses, and ignores it when one does not answer, on an engine that asks for that; and cfg(predicate) registers the case only where the predicate holds, while the function still compiles everywhere.