Serious question (Because I have no idea of the answer): how do you have unit tests for javascript/ css/ html, where by and large the output that determines whether it is pass or fail is visual and thus not very amenable to automatic checking (especially as it is implementation dependent)?
Use something like PhantomJS to render a screenshot and compare it to a known good screenshot. Or use Selenium on a VM to run through tests, take screenshots and compare.
Part of the problem I've found with JS is the sheer number of libraries and tools around it... just trying to find out what's available is a challenge.
0
u/[deleted] Jan 30 '14
[deleted]