Runs Go unit tests that depend on the Spanner emulator by automatically managing the environment.
Install
mkdir -p .claude/skills/test-with-spanner && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6272" && unzip -o skill.zip -d .claude/skills/test-with-spanner && rm skill.zipInstalls to .claude/skills/test-with-spanner
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run unit tests that require the Spanner emulator. Use this skill when the user wants to run tests in packages like satellite/metabase, satellite/metainfo, or any other tests that interact with Spanner. Automatically handles checking for and configuring the Spanner emulator environment.Key capabilities
- →Detects Spanner-dependent Go packages
- →Injects emulator binaries into test environments
- →Configures -spanner-test-db flags automatically
- →Manages test-specific database cleanup routines
- →Reports subtest outcomes for parallel execution
How it works
Checks for existing environment variables and manages the Spanner lifecycle by injecting runtime flags into standard Go test commands.
Inputs & outputs
When to use test-with-spanner
- →Running unit tests in Spanner-dependent packages
- →Executing tests in satellite/metabase or satellite/metainfo
- →Managing Spanner emulator environments for Go tests
About test-with-spanner
Detects if tests require the Spanner emulator and handles the start/stop lifecycle. It automatically configures the database connection or uses existing environment variables, simplifying the execution of complex database tests.
Run unit tests that require the Spanner emulator. Use this skill when the user wants to run tests in packages like satellite/metabase, satellite/metainfo, or any other tests that interact with Spanner. Automatically handles checking for and configuring the Spanner emulator environment.
When not to use it
- →Tests that do not use Spanner databases
- →Running tests in environments without emulator access
Prerequisites
Limitations
- →Requires spanner_emulator binary available in PATH
- →Specific to Go test frameworks
- →May conflict with external DB environment configurations
How it compares
It abstracts the complexity of database state management for unit tests instead of requiring manual emulator setup.
Compared to similar skills
test-with-spanner side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| test-with-spanner (this skill) | 1 | 6mo | Review | Intermediate |
| generating-database-seed-data | 10 | 27d | Review | Intermediate |
| run-tests | 1 | 5mo | Review | Intermediate |
| test-with-postgres | 1 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by storj
View all by storj →You might also like
generating-database-seed-data
jeremylongshore
Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.
run-tests
pgschema
Run pgschema automated tests (go test) to validate diff logic, plan generation, and dump functionality using test fixtures
test-with-postgres
storj
Run unit tests that require PostgreSQL. Use this skill when the user wants to run tests with PostgreSQL database backend. Automatically handles checking for and configuring a PostgreSQL Docker container.
differential-fuzzer
tursodatabase
Information about the differential fuzzer tool, how to run it and use it catch bugs in Turso. Always load this skill when running this tool
managing-database-tests
jeremylongshore
Test database testing including fixtures, transactions, and rollback management. Use when performing specialized testing. Trigger with phrases like "test the database", "run database tests", or "validate data integrity".
advanced-lokstra-validate-consistency
primadi
Validate application consistency - circular dependencies, schema validation, config checks, annotation validation, and service registration. Use after all code is implemented to identify issues before deployment.