| Crates.io | ents-test-suite |
| lib.rs | ents-test-suite |
| version | 0.4.0 |
| created_at | 2026-01-13 05:55:41.213145+00 |
| updated_at | 2026-01-17 05:17:59.079676+00 |
| description | Ents database implementation test suite |
| homepage | |
| repository | https://github.com/blmarket/ents |
| max_upload_size | |
| id | 2039404 |
| size | 59,961 |
Shared test suite for validating ents database backend implementations.
ents-test-suite provides a comprehensive, reusable set of test cases and test entities that ensure any storage backend implementation correctly implements the ents framework contracts. This enables consistent behavior across different database backends.
This crate is typically used as a dev-dependency for backend implementations:
[dev-dependencies]
ents-test-suite = { path = "../ents-test-suite" }
Implement the TestSuiteRunner and TestCaseRunner traits for your backend, then use the provided test functions:
use ents_test_suite::{test_basic_create, TestSuiteRunner};
#[test]
fn test_create() {
let runner = MyBackendRunner::new();
test_basic_create(&runner).unwrap();
}
TestSuiteRunner: Creates test case runners for your backendTestCaseRunner: Executes individual test cases with transaction supportSee the test implementations in: