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 ページを確認してインストールできます。
SOC 職業分類に基づく
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