testing-validation
星标15
分支5
更新时间2026年2月11日 21:16
Test and validation workflow before commit
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
文件资源管理器
2 个文件SKILL.md
readonly菜单
Test and validation workflow before commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
TDD workflow for implementing features
Keep project documentation up to date
Manage and enforce project specifications for consistency
Designing premium user interfaces with egui
Critical analysis of trading techniques and financial innovation
Trading performance evaluation via backtesting and metrics
| name | Testing & Validation |
| description | Test and validation workflow before commit |
# Full validation (format + clippy + test)
./.agent/skills/testing/scripts/validate.sh
# With auto-fix formatting
./.agent/skills/testing/scripts/validate.sh --fix
cargo fmt --all
Automatically formats all code according to Rust conventions.
cargo clippy --all-targets -- -D warnings
Rules:
#[allow(...)]cargo test
Rules:
When writing #[tokio::test], preventing infinite hangs is critical:
recv().await).
// ❌ Potential hang
let msg = rx.recv().await.unwrap();
// ✅ Safe
let msg = tokio::time::timeout(std::time::Duration::from_secs(1), rx.recv())
.await
.expect("Timeout waiting for message")?;
cargo build --release
Do this before a release or to verify optimizations.
# Full validation in one line
cargo fmt && cargo clippy --all-targets -- -D warnings && cargo test
# Specific tests
cargo test test_name # A specific test
cargo test module_name:: # All tests in a module
cargo test --lib # Library tests only
cargo test --test integration # Integration tests
cargo fmt executedcargo clippy without warningscargo test all tests pass