·integration-test
</>

integration-test

Guidelines for writing integration tests with CockroachDB test servers, including when to use them and how to use sqlutils.

18Installs·0Trend·@cockroachdb

Installation

$npx skills add https://github.com/cockroachdb/cockroach --skill integration-test

How to Install integration-test

Quickly install integration-test AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/cockroachdb/cockroach --skill integration-test
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: cockroachdb/cockroach.

SKILL.md

View raw

Integration tests use testserver, a fully functional CockroachDB server with all components in-memory and in the same process. They're SLOW to spin up (can add seconds per test case), so use them only when necessary.

Prefer sqlutils.MakeSQLRunner over raw database connections in most cases. It provides automatic error handling (fails the test on error), cleaner syntax, and helper methods for common operations.

Use sqlDB.DB when you need direct error handling rather than automatic test failure:

Guidelines for writing integration tests with CockroachDB test servers, including when to use them and how to use sqlutils. Source: cockroachdb/cockroach.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/cockroachdb/cockroach --skill integration-test
Category
</>Dev Tools
Verified
First Seen
2026-03-04
Updated
2026-03-10

Browse more skills from cockroachdb/cockroach

Quick answers

What is integration-test?

Guidelines for writing integration tests with CockroachDB test servers, including when to use them and how to use sqlutils. Source: cockroachdb/cockroach.

How do I install integration-test?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/cockroachdb/cockroach --skill integration-test Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/cockroachdb/cockroach