Crate tanu_derive

Crate tanu_derive 

Source
Expand description

§Tanu Derive

Procedural macros for the tanu WebAPI testing framework.

This crate provides the #[tanu::test] and #[tanu::main] procedural macros that enable the core functionality of tanu’s test discovery and execution system.

§Macros

  • #[tanu::test] - Marks async functions as tanu test cases
  • #[tanu::test(param)] - Creates parameterized test cases
  • #[tanu::main] - Generates the main function for test discovery

These macros are automatically re-exported by the main tanu crate, so users typically don’t need to import this crate directly.

Attribute Macros§

main
Generates the test discovery and registration code for tanu.
test
Marks an async function as a tanu test case.