Hoa Kỳpercy/percy-cypress
Visual testing with Cypress and Percy
📸 Visual testing cho Cypress với Percy
Tích hợp Percy visual testing vào Cypress, tự động chụp ảnh màn hình và so sánh giao diện trong quy trình CI.
@percy/cypress là package JavaScript kết nối Cypress với Percy, hỗ trợ visual regression testing. Cài đặt qua npm, import vào cypress/support/index.js, sử dụng cy.percySnapshot() để chụp snapshot trong test.
✨ Điểm nổi bật
- Cài đặt nhanh:
npm install --save-dev @percy/cli @percy/cypress - Snapshot tự động: Dùng
cy.percySnapshot()trong test Cypress - Tích hợp CI: Chạy với
percy exec -- cypress run - Cấu hình linh hoạt: Hỗ trợ
minHeight,percyCSS,sync - Bắt lỗi chụp trùng: Tùy chọn
percyThrowErrorOnFailure - Công cụ migrate: Hỗ trợ nâng cấp từ phiên bản cũ qua
@percy/migrate
💡 Vì sao đáng chú ý
Dự án đơn giản hóa quy trình visual testing trong Cypress, tích hợp sẵn vào workflow hiện tại. Thích hợp cho dự án sử dụng Cypress cần kiểm tra giao diện tự động trong CI/CD.
#VisualTesting #Cypress #Percy #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.
The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
Backend and Frontend application for tracking differences via image comparison
The open source visual testing platform for teams and AI agents. Review the product, not just the code.
Visual testing for React Native. Catch visual regressions on iOS and Android simulators in the cloud, before they ship.