首页/ AI 技能 / @skilllib/skill-2117939930272417879
Skill站外收录 @skilllib/skill-2117939930272417879

dart-test

提供 Dart项目的标准化测试支持,涵盖单元测试、集成测试及持续集成验证流程,统一管理测试组织结构、编写规范与调试方法,确保代码变更前通过自动化质量门禁。

0.0 (0) 36 次安装 原作者 编程导航
收录于 2026-01-22
测试与安全 AI 技能

Skills.MD

# DART Testing Load this skill when writing or debugging tests. ## Quick Commands ```bash 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: ```bash pixi run lint # Must pass pixi run test-all # Must pass ``` ## Debugging Test Failures ```bash # Run single test with verbose output ctest -R TestName -V # Get CI logs gh run view <RUN_ID> --log-failed ```

评论 0

还没有评论,来抢沙发。