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