Skip to content

Test Suite Guide

Test Suite Guide

Use focused Cargo targets to validate HeliosDB Nano features from the source tree.

Quick Start

Terminal window
cd ~/Helios/Nano
cargo test

For a narrower run, choose the area you are validating.

Focused Test Areas

AreaCommand
SQL branchingcargo test branch_sql_integration_tests
Materialized viewscargo test materialized_view_tests
Materialized view integrationcargo test materialized_view_integration
System views and REPL metadatacargo test repl_meta_commands
Time-travel and system viewscargo test time_travel_system_views_tests
PostgreSQL SCRAM authcargo test --test postgres_scram_auth_tests
PostgreSQL SSL/TLScargo test --test postgres_ssl_tests
PostgreSQL extended protocolcargo test --test postgres_extended_protocol_tests
Binary int4 protocol regressioncargo test --test v334_a15_binary_int4

Manual Smoke Test

Terminal window
./target/release/heliosdb-nano repl << 'EOF'
CREATE TABLE smoke (id INT, name TEXT);
INSERT INTO smoke VALUES (1, 'ok');
SELECT * FROM smoke AS OF NOW;
CREATE DATABASE BRANCH smoke_branch FROM main AS OF NOW;
SELECT branch_name FROM pg_database_branches();
DROP DATABASE BRANCH smoke_branch;
\q
EOF

Build Before Running Release-Binary Checks

Terminal window
cargo build --release

See Also