3 ms·
This means I can test all the Javascript that my rails applications use without opening a browser!
by xutopia 17y ago
This means I can test all the Javascript that my rails applications use without opening a browser!
- steveklabnik 17y agoYou can run cucumber + selenium. I'm pretty sure selenium can run in headless mode (haven't turned it on yet, too fun to watch!)
- jbarnette 17y agoThis is useful for tightening the feedback loop. Using something like Autotest gives me near-instant feedback on changes I'm making to client-side libraries. I'll continue to periodically run my tests inside a "real" browser, but I think this sort of headless testing is a real win. [Disclaimer: I wrote Johnson, so I'm not exactly a disinterested bystander. Edited for repetition.]
- hugs 17y agoBut then you won't know if all the JavaScript that your rails applications use will actually work in a browser. Some browser testing is still needed.