test-with-spanner

Configure and run Go tests with the Google Cloud Spanner emulator.

4|3|Updated Jun 8, 2017
One-click install
npx skills add https://github.com/nkeonye-akumah/decentralized-storage-gateway --skill test-with-spanner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-with-spanner
Source: https://github.com/nkeonye-akumah/decentralized-storage-gateway/tree/main/.claude/skills/test-with-spanner
Command: npx skills add https://github.com/nkeonye-akumah/decentralized-storage-gateway --skill test-with-spanner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps ensure unit tests that rely on Google Cloud Spanner run reliably by automatically configuring and using the Spanner emulator.

Core Features & Use Cases

  • Emulator detection: Checks SPANNER_EMULATOR_HOST and STORJ_TEST_SPANNER to determine if the emulator is ready.
  • Automated startup: Starts the Spanner emulator in the background when needed.
  • Test execution support: Runs go tests with proper environment variables for the emulator.

Quick Start

Run a Spanner-emulator-enabled test for a package, e.g., go test -v ./satellite/metabase -run TestName, after setting SPANNER_EMULATOR_HOST and STORJ_TEST_SPANNER.