Visual Testing 工具比較:選誰好?

比較 Percy、Chromatic 與 jest-image-snapshot

以下比較 Percy、Chromatic 與 jest-image-snapshot,列出不同點。

# Percy Chromatic jest-image-snapshot
Generate snapshots Screenshots Screenshots DOM structure in text format
Diff snapshots O O X (註 3)
Diff DOM X O X (註 3)
View result by PR (註 1) X O X (註 3)
View result by branch (註 2) O O X (註 3)
Show as PR criteria O (註 4) O (註 5) X (註 3)
Component-level testing O (註 6) O (註 6) X
Integrate with end-to-end testing tools O X O

備註

總結

我的作法是同時使用 Percy 與 Chromatic,砍掉 jest-image-snapshot


comments powered by Disqus