Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: