Expand description
§EntiDB Testkit
Test utilities for EntiDB.
This crate provides:
- Test fixtures and database helpers
- Property-based test generators using proptest
- Golden test utilities for format verification
- Cross-crate integration test helpers
- Fuzz testing harnesses
- Stress testing utilities
- Cross-language test vectors
- Crash recovery testing harness
§Usage
ⓘ
use entidb_testkit::prelude::*;
#[test]
fn test_with_database() {
with_temp_db(|db| {
let collection = db.collection("test");
// ... test operations
});
}§Crash Recovery Testing
ⓘ
use entidb_testkit::crash::CrashRecoveryHarness;
let mut harness = CrashRecoveryHarness::with_temp_dir().unwrap();
let results = harness.run_all_tests();
assert!(harness.all_passed());Re-exports§
pub use crash::*;pub use fixtures::*;pub use fuzz::*;pub use generators::*;pub use golden::*;pub use integration::*;pub use stress::*;pub use vectors::*;
Modules§
- crash
- Crash recovery testing for EntiDB.
- fixtures
- Test fixtures and database helpers.
- fuzz
- Fuzz testing harnesses for EntiDB.
- generators
- Property-based test generators using proptest.
- golden
- Golden test utilities for format verification.
- integration
- Cross-crate integration test helpers.
- prelude
- Prelude module for convenient imports
- stress
- Stress tests for EntiDB.
- vectors
- Cross-language test vectors for EntiDB.