pump-testing
БесплатноБез исполняемых скриптовНе проверенMulti-language test infrastructure for the Pump SDK — Rust unit/integration/security/performance tests, TypeScript Jest tests, Python fuzz tests, shell test…
от x402agent★ 26 звёзд на GitHubОб этом скилле
Testing & Quality — Multi-Language Test Infrastructure
Comprehensive test infrastructure spanning Rust, TypeScript, Python, and Bash with CI quality gates.
Test Matrix
| Language | Framework | Directory | Focus |
|---|---|---|---|
| Rust | cargo test |
rust/tests/ |
Unit, integration, security |
| Rust | Criterion | rust/benches/ |
Performance benchmarks |
| TypeScript | Jest | typescript/tests/ |
Unit, integration |
| TypeScript | Jest | tests/ |
SDK tests |
| Python | Custom | tests/fuzz/ |
Fuzzing |
| Bash | Custom | tests/cli/ |
CLI integration |
Running Tests
# Rust
cargo test # All tests
cargo test --test integration_tests # Integration only
cargo test --test security_tests # Security only
cargo test --test performance_tests # Performance only
cargo bench # Criterion benchmarks
# TypeScript
npx jest # All Jest tests
npx jest --coverage # With coverage
# Shell
bash scripts/test-rust.sh # Full Rust test orchestration
bash docs/run-all-tests.sh # Run everything
Test Orchestration (test-rust.sh — 10 Steps)
- Check Rust toolchain
- Run
cargo fmt --check - Run
cargo clippy - Run unit tests
- Run integration tests
- Run security tests
- Run performance tests
- Run benchmarks
- Build release binary
- Verify binary output
Quality Gates
| Gate | Threshold |
|---|---|
| Rust tests | All pass |
| TypeScript tests | All pass |
cargo clippy |
No warnings |
cargo fmt |
Formatted |
| Coverage | >70% |
Stress / Benchmark Tests
# Rust benchmarks
cargo bench --bench generation_bench
# Stress tests
tests/stress/ # Long-running stability tests
tests/benchmarks/ # SDK benchmark tests
Patterns to Follow
- Write tests alongside implementation — not as an afterthought
- Test edge cases: zero amounts, null accounts, maximum values
- Test roundtrip consistency: buy→sell should approximate original (minus fees)
- Use transaction simulation for on-chain behavior verification
- Mock Anchor programs for offline SDK tests
Common Pitfalls
- Devnet RPC may be rate-limited — use retries in integration tests
cargo benchrequires release profile — debug builds give misleading numbers- Jest
ts-jestmay need explicittsconfig.test.json - Python fuzz tests may run indefinitely — set timeouts
Установить pump-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pump-testing?
Multi-language test infrastructure for the Pump SDK — Rust unit/integration/security/performance tests, TypeScript Jest tests, Python fuzz tests, shell test orchestration, Criterion benchmarks, and CI quality gates.
Как установить скилл pump-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pump-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic