ruvector/examples/scipix/tests/lib.rs
rUv 4b1fd0e286 fix(ci): Fix PostgreSQL Extension CI failures
- Remove invalid feature flags (hybrid-search, filtered-search) that don't exist
- Replace with valid all-features flag for comprehensive testing
- Add PostgreSQL apt repository for older versions on Ubuntu 24.04
- Apply cargo fmt formatting to all crates

This fixes CI failures caused by:
- Feature flags that were planned but not implemented
- PostgreSQL 14 packages not available on Ubuntu 24.04 default repos

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 23:43:01 +00:00

40 lines
943 B
Rust

// 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::*;