RepositoryJavaScriptUSHoa Kỳ
percy

percy/percy-storybook

Percy's Storybook SDK.

156sao
48fork
2issue
2lượt xem

🖼️ Visual testing Storybook với Percy

SDK chính thức từ Percy để tự động kiểm tra giao diện các component trong Storybook.

@percy/storybook là SDK JavaScript giúp tích hợp Percy - nền tảng visual testing - trực tiếp vào dự án Storybook. Dự án tự động chụp ảnh snapshot của từng story, so sánh với baseline và đánh dấu các thay đổi giao diện tiềm ẩn. Phù hợp cho team muốn ngăn chặn visual regression mỗi khi commit code.

✨ Điểm nổi bật

  • Cài đặt nhanh: Chỉ cần npm install @percy/cli @percy/storybook
  • Hỗ trợ nhiều nguồn: Chụp snapshot từ thư mục build tĩnh hoặc URL local/live
  • Tự động start Storybook: Lệnh storybook:start tự động khởi động server
  • Lọc stories: Include/exclude theo pattern tên story
  • Phân chia snapshot: Hỗ trợ sharding bằng shard-count, shard-size, shard-index
  • Dry-run mode: In ra tên snapshot mà không tải lên
  • Cấu hình chi tiết: Cho phép thiết lập hostname, timeout, cache, debug

💡 Vì sao đáng chú ý

Khác với cách kiểm tra giao diện thủ công, @percy/storybook tự động hóa toàn bộ quy trình: từ khởi chạy Storybook, thu thập snapshot, đến so sánh với baseline. Percy quản lý baseline theo nhánh (branch), đảm bảo test luôn so sánh đúng phiên bản. Khi phát hiện thay đổi, hệ thống nhóm và đánh dấu diff để team review nhanh.


#VisualTesting #Storybook #Percy #ComponentTesting #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
percy/percy-cypress

Visual testing with Cypress and Percy

352
Nov 30, 2026
RepositoryJavaScript
percy/cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.

86
Nov 20, 2026
RepositoryJavaScript
percy/percy-puppeteer

Visual testing with Puppeteer and Percy

49
Nov 16, 2026
RepositoryJavaScript
oblador/loki

👁 Visual Regression Testing for Storybook

1.9k
Oct 29, 2026
RepositoryJavaScript
percy/percy-ember

Ember addon for visual regression testing with Percy

72
Nov 17, 2026
RepositoryTypeScript
storybookjs/storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

91.8k
Nov 29, 2026
RepositoryTypeScript
reg-viz/storycap

A Storybook Addon, Save the screenshot image of your stories :camera: via puppeteer.

757
Nov 30, 2026
RepositoryTypeScript
creevey/creevey

Cross-browser screenshot testing tool for Storybook with fancy UI Runner.

432
Aug 6, 2026
RepositoryTypeScript
sherlo-io/sherlo

Visual testing for React Native. Catch visual regressions on iOS and Android simulators in the cloud, before they ship.

84
Nov 30, 2026