testing
构建可靠的 Rust 测试套件
分布式 Rust 系统需要覆盖逻辑、异步行为、同步和解析器安全性的测试。此技能为 Claude、Codex 和 Claude Code 提供用于 Guts 测试的实用模式。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "testing" from https://skillstore.io/skills/abdelstark-testing.md and its manifest at https://skillstore.io/api/skills/abdelstark-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“testing”。 我需要针对代码库名称验证的测试。
预期结果:
一份简洁的测试计划,涵盖有效名称、空名称、无效字符、边界长度以及分组的 Rust 测试用例。
正在使用“testing”。 我需要确信三个节点能够同步代码库。
预期结果:
一个集成测试大纲,用于启动测试节点、连接它们、创建代码库、等待同步,并验证所有节点。
正在使用“testing”。 我需要更强的解析器安全性检查。
预期结果:
一份属性和模糊测试计划,定义解析器不变量、随机输入覆盖、panic 检查以及预期失败处理。
安全审计
安全Static findings were false positives caused by Markdown fences, inline code formatting, and ordinary Rust testing examples. The only command examples are transparent Cargo test, coverage, benchmark, and fuzzing commands intended for user-directed development workflows. No prompt injection, secret access, network exfiltration, obfuscation, or malicious intent was found in SKILL.md.
风险因素
⚙️ 外部命令 (21)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/abdelstark-testing/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/abdelstark-testing?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/abdelstark-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/abdelstark-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/abdelstark-testing.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
AbdelStark. (2026). testing security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/abdelstark-testing/audits/9BibTeX 引用
@techreport{abdelstark-abdelstark-testing-2026,
author = {AbdelStark},
title = {testing security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/abdelstark-testing/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "testing security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "AbdelStark"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/abdelstark-testing/audits/9"
identifiers:
- type: other
value: "skillstore:abdelstark-testing:audit:9"
description: "Skillstore immutable audit report identifier"
比较变体
5 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
添加单元测试覆盖率
使用单元测试模式来组织代码库测试并验证错误处理。
验证分布式同步
建模多节点集成测试,以创建、连接并验证代码库同步。
增强解析器可靠性
应用基于属性的测试和模糊测试模式,以发现崩溃和不变量失败。
试试这些提示
使用测试技能为这个 Guts 函数编写 Rust 单元测试。包括成功用例和一个无效输入用例。
使用测试技能为这些代码库行为提出测试模块结构。将相关测试分组,并清晰命名每个用例。
使用测试技能设计用于代码库创建、克隆、节点连接以及三个节点间同步的集成测试。
使用测试技能为这个解析器或身份组件创建基于属性的测试思路和模糊测试目标。解释要验证的不变量。
最佳实践
- 先编写大量聚焦的单元测试,再添加较慢的集成测试或端到端测试。
- 为异步测试设置超时边界,避免失败导致测试套件挂起。
- 对解析器、签名以及其他输入密集型逻辑使用属性测试和模糊测试目标。
避免
- 不要仅依赖端到端测试来验证核心代码库行为。
- 不要让多节点测试依赖不受控的时序或共享状态。
- 不要在本地工作流中运行缺少明确限制的长时间模糊测试或基准测试任务。
常见问题
此技能适用于哪些项目?
此技能是否包含可运行的测试?
它能帮助编写异步 Rust 测试吗?
它涵盖模糊测试吗?
Claude Code 或 Codex 可以使用此技能吗?
它能取代项目特定的测试设计吗?
开发者详情
作者
AbdelStark许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
9f22d902a4190b1e33cced8a68441beb8e612f59
维护新鲜度
2026/7/25
使用量
7 次下载 · 269 次浏览
文件结构
📄 SKILL.md