Hacker News new | past | comments | ask | show | jobs | submit login

How do you TDD CSS and dynamic transitions on the UI, according to the target browser layout, in all devices request by customers?

For example, TDD a CSS responsive transition among Chrome, Safari, IE, iOS, Android, WP, TV settop boxes across multiple resolutions.




I usually just test the addition/subtraction of a class, and don't test the purely visual elements.


So you just contradict yourself? So you don't really test all aspects of web UI's.


I suppose you're correct. We are starting to do some image-diff based regression testing, but I'm not sure that anyone really does css TDD.

TDD is in large part about getting the feedback-loop cycle as quick as possible while you're developing. JS unit and integration testing can help with the functional aspects, but visual aspects are better paired with a tool like livereload.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: