金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

dart-test

dart-test 是面向测试与安全的 Agent Skill,来自 dartsim/dart。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

DART testing patterns - unit tests, integration tests, CI validation

SKILL.md

下载 MD ↓
namedart-test
descriptionDART testing patterns - unit tests, integration tests, CI validation

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

  1. Follow existing patterns in the test directory
  2. Use GoogleTest framework
  3. 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

来源:dartsim/dart · BSD 许可 · 许可原文 · MD 为来源页保存的历史版本