Home / Skills / pingcap/tidb

tidb-integrationtest-recorder

Use when recording TiDB integration tests under tests/integrationtest and verifying regenerated result files stay minimal and correct.

skillLicense: Apache-2.0 Source: pingcap/tidb

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit pingcap/tidb/.agents/skills/tidb-integrationtest-recorder .claude/skills/tidb-integrationtest-recorder

Or install it for every project:

npx degit pingcap/tidb/.agents/skills/tidb-integrationtest-recorder ~/.claude/skills/tidb-integrationtest-recorder

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
name: tidb-integrationtest-recorder
description: Use when recording TiDB integration tests under tests/integrationtest and verifying regenerated result files stay minimal and correct.
---

# TiDB Integration Test Recorder

## Overview

Use this workflow for changes under `tests/integrationtest/t/**` or when SQL behavior needs integration coverage.
Do not use `-record` for this suite.
Canonical command details live in `docs/agents/testing-flow.md` -> `Integration tests (/tests/integrationtest)`.

## Workflow

1. Use `docs/agents/testing-flow.md` -> `Integration tests (/tests/integrationtest)` for the recording command.
2. Derive `TestName` from the path under `tests/integrationtest/t/` without the `.test` suffix (example: `planner/core/binary_plan`).
3. Review changed files in `tests/integrationtest/r/**` and keep result diffs minimal.

## Guardrails

- Prefer targeted recording of the affected suite only.
- Avoid unrelated result churn.
- If result files need manual edits, keep them minimal and verify with another run.