This covers the testing workflow for a SQL database project that's migrating from TCL tests to a newer `.sqltest` format. You get specifics on when to use each test type (SQL compatibility tests, Rust integration tests, fuzz tests), how to run them with make commands or cargo, and concrete examples of the `.sqltest` syntax with its pipe-delimited output format. The conversion process is particularly detailed since you'll need to use a converter tool, manually fix warnings, then verify against generated databases with different seeds. The honest reality here is that test migration is messy work involving a lot of manual verification, but the guide at least tells you exactly which commands to run and where files should live.

skills.sh installs
1.3K
GitHub stars
25.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add tursodatabase/turso --skill testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Testing Guide

Test Types & When to Use

TypeLocationUse Case
.sqltestsqlite/conformance/sqlite-sqltests/SQL compatibility. Preferred for new tests
.sqltesttesting/shared-sqltests/SQL that both the SQLite and the PostgreSQL frontends run
TCL .testtesting/Legacy SQL compat (being phased out)
Rust integrationtests/integration/Regression tests, complex scenarios
Fuzztests/fuzz/Complex features, edge case discovery

Note: TCL tests are being phased out in favor of the .sqltest suites in sqlite/conformance/. The .sqltest format allows the same test cases to run against multiple backends (CLI, Rust bindings, etc.).

Running Tests

# Main test suite (TCL compat, sqlite3 compat, Python wrappers)
make test

# Single TCL test
make test-single TEST=select.test

# SQL test runner
make -C sqlite/conformance run-cli

# OR
cargo run -p sqltest -- run <test-file or directory>

# Rust unit/integration tests (full workspace)
cargo test

Writing Tests

.sqltest (Preferred)

@database :default:

Sponsors

Details

Repository
github.com/tursodatabase/turso
Categories
Testing & QA, Rust, Marketing & SEO, Databases
First seen
May 16, 2026

More from tursodatabase/turso

All 14
1astronomer avatartesting-dagsastronomer/agentsComplex DAG testing workflows with debugging and fixing cycles. Use for multi-step testing requests like "test this dag and fix it if it fails", "test and debug1.2Kskills.sh installs
2alirezarezvani avatarsecurity-pen-testingalirezarezvani/claude-skillsUse when the user asks to perform security audits, penetration testing, vulnerability scanning, OWASP Top 10 checks, or offensive security assessments. Covers s862skills.sh installs
3ruvnet avatartest-gapsruvnet/rufloDetect missing test coverage and generate test suggestions. Use when the user asks about coverage gaps, untested code, or what tests to write next; also after a755skills.sh installs
4dotnet avatarmcp-csharp-testdotnet/skillsTest C# MCP servers at multiple levels: unit tests for individual tools and integration tests using the MCP client SDK. USE FOR: unit testing MCP tool methods, 706skills.sh installs
5aj-geddes avatarperformance-testingaj-geddes/useful-ai-promptsDesign and execute performance tests to measure response times, throughput, and resource utilization. Use for performance test, load test, JMeter, k6, benchmark609skills.sh installs
6proffesor-for-testing avatarapi-testing-patternsproffesor-for-testing/agentic-qeComprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strate609skills.sh installs