AgentSkillsCN

gode-testing

测试 DE 变体,运行集成测试,并进行性能基准测试。适用于测试各类变体(最佳、随机、局部最优、当前到最佳)、跨商店后端的集成测试,以及 DE 算法的基准性能评估。

SKILL.md
--- frontmatter
name: gode-testing
description: Test DE variants, run integration tests, and benchmark performance. Use for testing variants (best, rand, pbest, current-to-best), integration tests across store backends, and DE algorithm benchmarks.
allowed-tools: Read, Bash(go test:*), Bash(.claude/skills/gode-testing/scripts/*:*)

GoDE Testing Skill

Testing and benchmarking skill for the GoDE Differential Evolution framework.

Quick Start

Test a specific variant

bash
.claude/skills/gode-testing/scripts/test-variant.sh best

Run integration tests

bash
.claude/skills/gode-testing/scripts/test-integration.sh sqlite

Benchmark performance

bash
.claude/skills/gode-testing/scripts/benchmark-de.sh variants

Available Scripts

ScriptPurposeArguments
test-variant.shTest DE variants with coveragebest, rand, pbest, current-to-best, all
test-integration.shIntegration tests for store backendssqlite, postgres, redis, memory, e2e, all
benchmark-de.shPerformance benchmarksvariants, algorithms, problems, all

Output Locations

All outputs are saved to .dev/ (gitignored):

code
.dev/
├── coverage/           # Test coverage reports
├── benchmarks/         # Performance benchmark results
└── test/              # Temporary test databases

Detailed Documentation

Requirements

  • Go 1.21+
  • Docker (for integration tests with postgres/redis)
  • benchstat (optional, for benchmark comparisons): go install golang.org/x/perf/cmd/benchstat@latest