·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-10

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