testing
改进 Deno 测试实践
团队需要一致的测试结构和清晰的覆盖率期望。此技能指导 Deno 测试编写、文件放置、边界情况覆盖以及测试执行。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "testing" from https://skillstore.io/skills/5t111111-testing.md and its manifest at https://skillstore.io/api/skills/5t111111-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“testing”。 为新的日期解析器添加测试。
预期结果:
将日期解析器测试文件放在模块旁边。覆盖有效日期、无效格式、时区边界和解析器错误。
正在使用“testing”。 准备一个拉取请求以供审查。
预期结果:
- 确认每个公共函数都有对应的测试。
- 检查测试名称是否描述了预期行为。
- 在提交前运行项目测试命令。
正在使用“testing”。 改进现有测试套件。
预期结果:
查找缺失的边界情况、薄弱的错误处理覆盖和不清晰的测试名称。优先处理公共 API。
安全审计
安全The two static findings are Markdown inline code spans, not Ruby or shell backtick execution. The skill is prompt-only testing guidance with no evidence of prompt injection, data exfiltration, or malicious intent.
风险因素
⚙️ 外部命令 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/5t111111-testing/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/5t111111-testing?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/5t111111-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/5t111111-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/5t111111-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 引用
5t111111. (2026). testing security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/5t111111-testing/audits/7BibTeX 引用
@techreport{5t111111-5t111111-testing-2026,
author = {5t111111},
title = {testing security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/5t111111-testing/audits/7},
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 7)"
version: "unspecified"
type: report
authors:
- name: "5t111111"
date-released: "2026-07-04"
url: "https://skillstore.io/skills/5t111111-testing/audits/7"
identifiers:
- type: other
value: "skillstore:5t111111-testing:audit:7"
description: "Skillstore immutable audit report identifier"
比较变体
5 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
Deno 功能测试
为新的 Deno 功能规划测试,包括文件放置、公共 API 覆盖、边界情况和错误处理。
拉取请求审查
在变更获批或合并前,检查其是否包含清晰的测试。
团队测试标准
为在同一个 Deno 代码库中工作的贡献者定义简单的测试期望。
试试这些提示
帮我为这个模块添加 Deno 测试。使用放在源文件旁边的 `.test.ts` 文件,并包含描述性的测试名称。
审查我针对 [feature] 的测试计划。检查是否覆盖了公共函数、边界情况和错误处理。
为这个 Deno 项目设计一个测试清单。包括文件放置、命名、边界情况、错误处理以及 `mise run test` 步骤。
审计这个拉取请求中的测试缺口。识别缺失的公共函数测试、薄弱的用例名称、未覆盖的边界情况和验证步骤。
最佳实践
- 在源文件旁边创建覆盖它们的测试文件。
- 编写清晰的测试名称,说明正在审查的行为。
- 在提交前覆盖公共 API、边界情况和错误处理。
避免
- 让公共函数没有对应的测试。
- 使用模糊的测试名称,掩盖预期行为。
- 在运行项目测试套件之前提交变更。