Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
40
vendor/ruvector/examples/scipix/tests/lib.rs
vendored
Normal file
40
vendor/ruvector/examples/scipix/tests/lib.rs
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// Integration test library for ruvector-scipix
|
||||
//
|
||||
// This library provides the test infrastructure and utilities
|
||||
// for integration testing the scipix OCR system.
|
||||
|
||||
// Common test utilities
|
||||
pub mod common;
|
||||
|
||||
// Integration test modules
|
||||
pub mod integration;
|
||||
|
||||
// Test configuration
|
||||
#[cfg(test)]
|
||||
mod test_config {
|
||||
use std::sync::Once;
|
||||
|
||||
static INIT: Once = Once::new();
|
||||
|
||||
/// Initialize test environment once
|
||||
pub fn init() {
|
||||
INIT.call_once(|| {
|
||||
// Setup test logging
|
||||
let _ = env_logger::builder().is_test(true).try_init();
|
||||
|
||||
// Create test directories
|
||||
let test_dirs = vec![
|
||||
"/tmp/scipix_test",
|
||||
"/tmp/scipix_cache",
|
||||
"/tmp/scipix_results",
|
||||
];
|
||||
|
||||
for dir in test_dirs {
|
||||
std::fs::create_dir_all(dir).ok();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Convenience re-exports for tests
|
||||
pub use common::*;
|
||||
Reference in New Issue
Block a user