4 ms·
For Javascript testing, I really like JSTestDriver for automation and Sinon for mocking/stubbing. I found bulky solutions like Selenium to be somewhat hit-or-m
by tdavis 15y ago
For Javascript testing, I really like JSTestDriver for automation and Sinon for mocking/stubbing.
I found bulky solutions like Selenium to be somewhat hit-or-miss and overkill for most tasks. It's very rare that with proper unit testing I really need a whole additional layer just to click around the site and make sure stuff is working as expected. Maybe some basic sanity checking, but it's really not my preferred way to think about testing--which of course is just a personal preference.
- pmorel 15y agoSame, I feel that if there is a good coverage from unit testing, then you should only need sanity checking. Furthermore, if you are using jquery (which itself is well testing on all the browsers), then you should have more confidence that your javascript will work (providing you're not using non-cross-browser javascript on top of jquery)
- pmorel 15y agoFor reference, the list of tools and framework mentioned on this page can be found at http://www.romku.com/list/343858/web-testing-framework http://www.romku.com/list/343858/web-testing-framework. Feel free to rate them and add any missing information.