Crate tanu_core

Crate tanu_core 

Source
Expand description

§Tanu Core

Core functionality for the tanu WebAPI testing framework.

This crate provides the fundamental building blocks for tanu, including:

  • Test runners and execution logic
  • HTTP client functionality
  • Assertion macros and utilities
  • Configuration management
  • Test reporting infrastructure

Most users should use the main tanu crate rather than importing tanu-core directly.

Re-exports§

pub use config::get_config;
pub use config::Config;
pub use config::ProjectConfig;
pub use error::Error;
pub use error::Result;
pub use reporter::ListReporter;
pub use reporter::NullReporter;
pub use reporter::Reporter;
pub use anyhow;
pub use eyre;

Modules§

config
Configuration Module
error
http
HTTP Client Module
reporter
Test Reporter Module

Macros§

check
Asserts that a boolean expression is true.
check_eq
Asserts that two expressions are equal using ==.
check_ne
Asserts that two expressions are not equal using !=.
check_str_eq
Asserts that two string expressions are equal with enhanced string diff output.

Structs§

ModuleFilter
Filters tests to only run from specified modules.
ProjectFilter
Filters tests to only run from specified projects.
Runner
The main test execution engine for tanu.
TestIgnoreFilter
Filters out tests that are configured to be ignored.
TestInfo
Test metadata and identification.
TestNameFilter
Filters tests to only run specific named tests.

Traits§

Filter
Trait for filtering test cases during execution.

Type Aliases§

ModuleName
Type alias for module names in test organization.
ProjectName
Type alias for project names in tanu configuration.
TestName
Type alias for individual test names.

Attribute Macros§

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