dart-test
15
总安装量
8
周安装量
#22541
全站排名
安装命令
npx skills add https://github.com/dartsim/dart --skill dart-test
Agent 安装分布
antigravity
6
claude-code
6
gemini-cli
6
opencode
5
codex
5
Skill 文档
DART Testing
Load this skill when writing or debugging tests.
Quick Commands
pixi run test # Quick test run
pixi run test-all # Full validation
ctest -R <pattern> # Run specific tests
ctest -V # Verbose output
Full Documentation
For complete testing guide: docs/onboarding/testing.md
For CI/CD troubleshooting: docs/onboarding/ci-cd.md
Test Organization
- Unit tests:
tests/unit/ - Integration tests:
tests/integration/ - Regression tests: Near the code they test
Writing Tests
- Follow existing patterns in the test directory
- Use GoogleTest framework
- Name tests descriptively:
TEST(ClassName, MethodName_Condition_ExpectedResult)
CI Validation
Before submitting PR:
pixi run lint # Must pass
pixi run test-all # Must pass
Debugging Test Failures
# Run single test with verbose output
ctest -R TestName -V
# Get CI logs
gh run view <RUN_ID> --log-failed