跳到正文
Skillpedia
测试48k · #5543

pypict-skill

它能做什么

这个工具可以生成一组测试用例,覆盖不同因素之间所有可能的取值两两组合。当测试每一种完整组合的成本过高或耗时过长时,它就很有用。

适用场景

  • ✓当可选项很多,但你无法全部测试时。
  • ✓当你需要生成一份高效的测试清单时。
  • ✓当你想确保每一对设置至少被测试一次时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pypict-skill/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pypict-skill/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为“操作系统”(Windows、macOS)和“浏览器”(Chrome、Firefox、Safari)两个因素生成测试用例,覆盖所有两两组合。”

每周 5 个新技能,1 分钟读完。

工作原理

你提供各个因素(类别)以及每个因素的可选值,工具会生成一份测试组合列表,确保不同因素之间的每一对取值都被测试到。它不会生成三个或更多因素的组合测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Pypict Skill

Overview

Pairwise test generation

When to Use

Design a small test matrix covering every pair of values across discrete factors, when exhaustive combinations are too costly and pairwise coverage is appropriate.

Procedure

  1. Define factors, permitted values and real invalid-combination constraints.
  2. Inspect an actual installed pairwise generator and its supported input format; this entrypoint does not bundle a Python package or executable.
  3. Generate candidate rows and independently enumerate covered valid value pairs. Missing pairs must remain visible; constraints must not be invented to hide them.
  4. Convert rows into tests with expected behavior, not just input combinations.

For three binary factors, this illustrative matrix covers all two-factor pairs:

[[0,0,0],[0,1,1],[1,0,1],[1,1,0]]

Pair coverage is not correctness or coverage of three-way interactions. Add known boundary, authorization and failure cases separately.

Example

User request:

Use @pypict-skill for this task: Pairwise test generation.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

“因素”和“取值”是什么?

因素是你想要测试的类别,比如操作系统、浏览器;取值是每个因素下的具体选项,比如操作系统下的 Windows、macOS,浏览器下的 Chrome、Firefox。

这样能保证所有可能的测试都被覆盖吗?

不能。这个工具的重点是覆盖取值的所有两两组合。对于三个或更多取值的组合,以及专门的安全测试和故障测试,你需要另外补充。

这个工具适用于所有类型的测试吗?

只适用于需要高效生成取值两两组合测试矩阵的场景,尤其是在穷举测试不可行的时候。

详情

作者的原始描述

Pairwise test generation

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5543
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能