Overview of the GBrain Test Suite
masterThe GBrain test suite is organized into several specialized domains to ensure the reliability of the brain engine, CLI, and data integrity. Key testing areas include:
- Core Engine & Data: Tests for PGLite/Postgres parity, schema migrations, JSONB data safety (poisoning/UTF-16 surrogates), and file resolution.
- CLI & Lifecycle: Tests for command structure, teardown contracts (ensuring clean exits and data flushing), and pipe completeness (ensuring piped stdout is not truncated).
- Retrieval & Evaluation: Tests for search ranking (RRF, cosine similarity), intent classification, and the BrainBench memory-conformance suite.
- Agentic Features: Tests for
volunteer_context(push-based context),watchcommand (streaming loops), and resolver reachability. - Maintenance & Integrity: Tests for schema drift detection, skill conformance, and auto-fix capabilities (
doctor --fix).