·textual-snapshot-testing
</>

textual-snapshot-testing

使用 pytest-textual-snapshot 对文本 TUI 应用程序进行视觉回归测试。 捕获 SVG 屏幕截图并在测试运行之间进行比较以检测视觉回归。 使用场合:测试视觉外观、检测布局回归、测试响应式 跨终端尺寸的设计、验证 CSS 样式效果或设置 CI/CD 用于视觉测试。涵盖 snap_compare 固定装置、run_before 回调、快照 管理、片状测试处理(动画、光标、时间戳)和 CI 集成。

3安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-snapshot-testing

如何安装 textual-snapshot-testing

通过命令行快速安装 textual-snapshot-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-snapshot-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Visual regression testing using pytest-textual-snapshot to capture and compare SVG screenshots.

The snapcompare fixture is automatically available after installation.

When tests fail, pytest generates HTML report with visual diff:

使用 pytest-textual-snapshot 对文本 TUI 应用程序进行视觉回归测试。 捕获 SVG 屏幕截图并在测试运行之间进行比较以检测视觉回归。 使用场合:测试视觉外观、检测布局回归、测试响应式 跨终端尺寸的设计、验证 CSS 样式效果或设置 CI/CD 用于视觉测试。涵盖 snap_compare 固定装置、run_before 回调、快照 管理、片状测试处理(动画、光标、时间戳)和 CI 集成。 来源:dawiddutoit/custom-claude。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-snapshot-testing
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-11

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 textual-snapshot-testing?

使用 pytest-textual-snapshot 对文本 TUI 应用程序进行视觉回归测试。 捕获 SVG 屏幕截图并在测试运行之间进行比较以检测视觉回归。 使用场合:测试视觉外观、检测布局回归、测试响应式 跨终端尺寸的设计、验证 CSS 样式效果或设置 CI/CD 用于视觉测试。涵盖 snap_compare 固定装置、run_before 回调、快照 管理、片状测试处理(动画、光标、时间戳)和 CI 集成。 来源:dawiddutoit/custom-claude。

如何安装 textual-snapshot-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-snapshot-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dawiddutoit/custom-claude