testing
构建可靠的测试自动化
薄弱的测试会拖慢发布并掩盖回归问题。此技能可指导测试策略、TDD、自动化、覆盖率审查以及 Playwright Web 检查。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "testing" from https://skillstore.io/skills/89jobrien-testing.md and its manifest at https://skillstore.io/api/skills/89jobrien-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“testing”。 为结账流程规划测试。
预期结果:
- 一份按优先级排序的测试计划,覆盖购物车验证、支付结果、税务规则和订单确认。
- 清晰区分快速单元测试、服务集成测试和关键端到端路径。
正在使用“testing”。 改进不稳定的 Playwright 登录测试。
预期结果:
一份审查报告,识别不稳定的 selectors、缺失的网络 waits、共享状态风险和 fixture 清理改进点。
正在使用“testing”。 开始为密码重置进行 TDD。
预期结果:
一个红、绿、重构序列,从一个失败的行为测试开始,并逐步扩展到边界情况。
安全审计
安全Most static findings are documentation examples, local Playwright URLs, mocked network calls, or Markdown formatting false positives. The bundled with-server helper is a real command-execution risk because it starts caller-supplied server commands with shell=True and then runs a caller-supplied command. No prompt injection, credential exfiltration, or malicious intent was found.
能力复核项 (2)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
🌐 网络访问 (9)
📁 文件系统访问 (5)
⚙️ 外部命令 (29)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/89jobrien-testing/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/89jobrien-testing?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/89jobrien-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/89jobrien-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/89jobrien-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 引用
Joseph OBrien. (2026). testing security audit report (audit version 9) [Author version 1.0.1]. Skillstore. https://skillstore.io/skills/89jobrien-testing/audits/9BibTeX 引用
@techreport{joseph-obrien-89jobrien-testing-2026,
author = {Joseph OBrien},
title = {testing security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/89jobrien-testing/audits/9},
note = {Author version 1.0.1}
}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: "1.0.1"
type: report
authors:
- name: "Joseph OBrien"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/89jobrien-testing/audits/9"
identifiers:
- type: other
value: "skillstore:89jobrien-testing:audit:9"
description: "Skillstore immutable audit report identifier"
比较变体
5 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
规划功能测试覆盖率
在实现开始之前,为新功能创建均衡的单元、集成和端到端覆盖。
稳定 Web 应用测试
通过检查渲染后的页面、选择稳定的 locators,并添加可靠的 waits 来改进 Playwright 测试。
强化发布门禁
为 pull requests 和 main branch 发布定义 CI 测试阶段、覆盖率阈值和质量门禁。
试试这些提示
为此功能创建测试计划。包含单元、集成和端到端覆盖,并标明优先级。
使用现有框架为此模块编写测试。使用 arrange, act, assert,并包含边界情况。
指导我针对这一行为完成红、绿、重构流程。从一个失败的测试开始,并保持改动最小。
审查此 Web 测试套件。识别不稳定的 selectors、缺失的 waits、覆盖率缺口以及 CI 门禁改进点。
最佳实践
- 从行为出发,编写能够证明它的最小测试。
- 保持测试隔离、确定性、可读,并足够快速以便频繁执行。
- 在项目工作区中运行辅助脚本和本地命令之前,先进行审查。
避免
- 当目标是严格 TDD 时,不要先编写实现。
- 不要依赖测试顺序、共享状态,或在没有受控替身的情况下依赖外部服务。
- 在开发者审查命令文本之前,不要运行生成的服务器命令。
常见问题
此技能支持哪些工具?
它能为任何框架编写测试吗?
它包含 Playwright 指导吗?
它能运行本地开发服务器吗?
它会自动强制执行覆盖率阈值吗?
它适合 TDD 吗?
开发者详情
许可证
MIT
作者版本
v1.0.1
Skillstore 修订
r1
引用
26421118b848d9f1efc0aa169d8a7a9e7e0a877e
维护新鲜度
2026/7/18
使用量
8 次下载 · 508 次浏览