一键导入
quality-assurance
Use when ensuring feature quality through testing, coverage gates, and pre-merge verification. Load during the Testing phase of SDLC.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when ensuring feature quality through testing, coverage gates, and pre-merge verification. Load during the Testing phase of SDLC.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when designing module placement, type design, and API surface for new features in rvlibs. Load during the Design phase of SDLC.
Use when refactoring large files (800+ lines) — both source and test code — by splitting into sibling modules or submodules based on scope and concern boundaries.
Use when reviewing code changes for correctness, style, conventions, testing, and security. Load during Implementation phase as a quality gate.
Use when implementing new features in rvlibs following conventions and existing patterns. Load during the Implementation phase of SDLC.
Use when triaging, diagnosing, and registering bugs or issues. Covers classification, reproduction, severity, and registration.
Use when publishing crates to crates.io, bumping versions, and managing the release pipeline. Load during the Deployment phase of SDLC.
| name | quality-assurance |
| description | Use when ensuring feature quality through testing, coverage gates, and pre-merge verification. Load during the Testing phase of SDLC. |
SDLC Phase: Testing
Ensure feature quality through thorough testing and verification.
describe/it block tests exactly one scenario.| Test Type | Location | Purpose |
|---|---|---|
| Unit test | src/ inline #[cfg(test)] | Internal helper functions, private methods |
| Integration test | tests/ at crate root | Public API behaviour from an external perspective |
| Doc test | /// code blocks in doc comments | Usage examples that are always up-to-date |
| Dogfooded spec | tests/ using describe/it | BDD-style behavioural tests for rvtest features |
Every new public function should be tested for:
a + b == b + a).Floating-point comparisons use assert!((a - b).abs() < EPSILON) rather than assert_eq!.
#[test] functions are reserved for bootstrapping and doc-tests only.describe block ends with .run().assert_all_pass() to surface failures.Before considering work complete:
cargo check passes with zero warningscargo clippy --all-targets --all-features -- -D warnings passescargo fmt --check passescargo test --workspace passes