Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSSにもテストが必要なのでは?テスト周りの知見があれば / CSS Evolution #57

Open
1 of 6 tasks
Yeshi opened this issue Feb 28, 2017 · 1 comment
Labels

Comments

@Yeshi
Copy link

Yeshi commented Feb 28, 2017

Issueのタイトル

CSSにもテストが必要なのでは?テスト周りの知見があれば / CSS Evolution

質問をしたいAMAブースを選択してください

質問

CSSのリファクタリングの話とも絡めて、CSSのテストってどうしていますか? 何か知見がありましたらお願いします。

@Yeshi
Copy link
Author

Yeshi commented Feb 28, 2017

回答

  • 真面目にやると45分くらいかかるので別の機会でじっくり…
  • 画像のdifを取る。ほぼ唯一の手段。何かしらビルドが入ったらコンポーネント単位でdiffを取り、何%以内だったらOK、のように通す。
  • Galen Frameworkといういかれたフレームワークで、何px離れてるかという数値でdiffをとる、それでseleniumを回してテストを通すという方法もある。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants