4 ms·
> With regard to the web, it's very easy to write automated tests against server-generated HTML or an HTTP API. Funny, I find the opposite. Code for the web is
by dmurray 6y ago
> With regard to the web, it's very easy to write automated tests against server-generated HTML or an HTTP API.
Funny, I find the opposite. Code for the web is hard to write reliable tests for. Typically I want to test that my component actually exists and is visible and does the right thing in a browser, so I need to produce the whole page instead of just the unit under test. This means that bugs - or just changes - in other parts of the page can make my test fail.
I'm not a front end expert and my colleagues rarely have been either, so maybe I'm missing something about best practices here, but I've definitely had the opposite experience to what you describe.