Testing
Running Tests
The extension includes a comprehensive test suite using PostgreSQL's pg_regress framework:
# Build and install the extension first
make
make install
# Run all tests
make installcheck
Test Coverage
The test suite includes 9 test files covering all functionality:
- setup - Extension installation and configuration
- chunking - Text chunking with various content sizes
- queue - Queue table and monitoring views
- vectorization - Basic enable/disable functionality
- multi_column - Multiple columns on the same table
- maintenance - reprocess_chunks() and recreate_chunks() functions
- edge_cases - Empty, NULL, and whitespace handling
- worker - Background worker configuration
- cleanup - Queue cleanup functions
Test Requirements
- PostgreSQL 14+ (tests run on installed version)
vectorextension must be installed- Extension must be built and installed before running tests