
Testing
A reference guide for writing and running SQL, TCL, and Rust tests in the database project.
- skills.sh installs
- 1.3K
- GitHub stars
- 25.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers test types by location:
.sqltestsuites for SQLite, shared, and PostgreSQL frontends, plus Rust integration, fuzz, and legacy TCL tests - Includes make targets (
make test,make test-single,make -C sqlite/conformance run-rust) andcargo testcommands, including a per-database leak check - Shows
.sqltestsyntax with@database,testandexpectblocks, and how to convert TCL files withmake -C sqlite/conformance convert - Designed for contributors adding tests to the database engine, with rules requiring a failing-then-passing test for every functional change
Install
$ npx -y skills add tursodatabase/turso --skill testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Testing Guide
Test Types
| Type | Location | Use Case |
|---|---|---|
.sqltest | sqlite/conformance/sqlite-sqltests/ | SQL compatibility. Preferred for new tests |
.sqltest | testing/shared-sqltests/ | SQL that both the SQLite and PostgreSQL frontends run |
.sqltest | postgres/conformance/pg-sqltests/ | PostgreSQL frontend |
| Rust integration | tests/integration/ | Regression tests, multi-connection and storage scenarios |
| Fuzz | tests/fuzz/ | Edge cases found by fuzzing |
TCL .test | testing/system/ | Legacy. Write new tests as .sqltest |
Extend an existing test file before creating a new one.
Running Tests
make test # TCL, sqlite3 compat, extensions, MVCC
make test-single TEST=select.test # one TCL test
make -C sqlite/conformance run-rust ARGS='--snapshot-filter __never__' # .sqltest runner
cargo test # Rust unit and integration tests
cargo test -p core_tester --test leak_tests # per-database memory leak check (separate binary with a counting allocator)
make sets RUST_LOG=off.
Writing a .sqltest
Details
- Repository
- github.com/tursodatabase/turso
- Categories
- Testing & QA, Databases
- First seen
- May 16, 2026
More from tursodatabase/turso
All 7Similar to Testing
More Testing & QA
differential-fuzzertursodatabase/turso1.2K installsTurso-vs-SQLite differential fuzzer that generates SQL, reproduces failures by seed, and minimizes them for probing.
rails-testingetewiah/property_web_builder652 starsGuidance for writing and debugging Rails unit, integration, and fixture-based tests across the project.
golang-testingsamber/cc-skills-golang45.9K installsProduction-ready Go test guidance covering table-driven tests, mocks, fuzzing, goroutine leak checks, and flakiness debugging.
rust-write-testspproenca/dot-skills257 installsExpert Rust testing guide covering the "What Could Break?" framework, five test transformations, and flake hunting.
shell-testing-frameworkmanutej/luxor-claude-marketplace441 installsBash testing guide built on unix-goto patterns, requiring 100% coverage across four test categories.
debuggingtursodatabase/turso1.3K installsDebugging guide for tursodb covering bytecode diffs, tracing logs, ThreadSanitizer, seeded simulation, stack measurement, and corruption analysis.