Skip to main content

wae_testing/
lib.rs

1//! WAE Testing - 测试支持模块
2//!
3//! 提供统一的测试工具集,包含 Mock 工具、断言扩展、数据生成器和测试环境管理。
4//!
5//! 深度融合 tokio 运行时,支持异步测试场景。
6//! 微服务架构友好,提供完整的测试基础设施。
7
8#![warn(missing_docs)]
9
10mod assertions;
11mod environment;
12mod error;
13mod fixture;
14mod mock;
15
16pub use assertions::{AsyncAssert, assert_eventually, assert_json_contains, assert_matches_regex};
17
18pub use environment::{TestEnv, TestEnvBuilder, TestEnvConfig, TestEnvState, create_test_env, create_test_env_with_config};
19
20pub use error::{TestingError, TestingResult};
21
22pub use fixture::{
23    Fixture, FixtureBuilder, FixtureGenerator, RandomBool, RandomChoice, RandomDateTime, RandomEmail, RandomNumber,
24    RandomString, RandomUuid,
25};
26
27pub use mock::{Mock, MockBuilder, MockCall, MockExpectation, MockFn, MockResult, verify};