duende-test
Testing infrastructure for the Duende daemon framework.
Overview
This crate provides testing utilities:
- 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
Usage
Test Harness
use ;
let harness = builder
.with_platform
.build;
let handle = harness.spawn.await?;
assert!;
Chaos Testing
use ChaosConfig;
use Duration;
let harness = builder
.with_chaos
.build;
// Daemon should remain healthy under chaos
let handle = harness.spawn.await?;
sleep.await;
assert!;
Load Testing
use ;
let tester = new;
let config = stress;
let report = tester.run.await?;
assert!;
println!;
Feature Flags
| Feature | Description |
|---|---|
falsification |
Enable 110 Popperian falsification tests |
Iron Lotus Framework
- Built-in Quality (品質の作り込み): Quality cannot be inspected in
- Popperian Falsification: Tests designed to refute claims
- Extreme TDD: Write failing tests first
License
MIT OR Apache-2.0