Expand description
§duende-test
Testing infrastructure for the Duende daemon framework.
This crate provides:
- Test harness: Daemon lifecycle testing utilities
- Chaos injection: Latency, errors, packet loss simulation
- Load testing: Performance testing under load
- Falsification tests: 110 Popperian tests for spec compliance
§Iron Lotus Framework
- Built-in Quality (品質の作り込み): Quality cannot be inspected in
- Popperian Falsification: Tests designed to refute claims
- Extreme TDD: Write failing tests first
§Example
ⓘ
use duende_test::{DaemonTestHarness, ChaosConfig};
let harness = DaemonTestHarness::new()
.with_chaos(ChaosConfig {
latency_injection: Some((0.1, Duration::from_millis(500))),
error_injection: Some(0.05),
..Default::default()
})
.build();
let handle = harness.spawn(my_daemon).await?;
assert!(handle.health_check().await?.is_healthy());Re-exports§
pub use chaos::ChaosConfig;pub use chaos::ChaosInjector;pub use error::Result;pub use error::TestError;pub use harness::DaemonTestHarness;pub use load::LoadTestConfig;pub use load::LoadTester;