This is for unit-testing in V8 only: no DOM. I'm currently using PhantomJS, which is V8 + Webkit and seems to be a superset of this new "JS Test". I can't see any reason to add JS Test in addition to PhantomJS.
For several years I have been using QtWebKit to write tests that utilize the dom. Fast startup, console output etc. I wouldn't be surprised if the Chrome guys have a similar stripped down Chrome for JS unit tests.
Note that those tests would be much prettier in CoffeeScript.
Is the purpose of heavy testing frameworks purely for the useful functions like "deepEquals"? If so, why not make a library with functions like "deepEquals" and use that library with a simple testing framework? Surely, there must be something I'm missing.
Edit: I should note that the beautifully written CoffeeScript compiler/translator doesn't use a testing framework (favoring a few simple hand-rolled functions), and it has a massive suite of tests.
One advantage is debugging failures. If the test framework only knows that a test passed or failed, but not why, then you don't get to know why either, because it can't tell you.
For instance, many test runners will show you the expected and actual values when a comparison fails. If they're large blobs of text, it can show you a diff, etc.
In Photoshop, I opened the image up and first chose Image -> Adjustments -> Replace Color. I shift-clicked (sampled) each color of source code by clicking on a few different pixel of the text. I dragged the Lightness slider to zero to make the source code black thereby "erasing" the source from the window.
Next, I opened up Image -> Adjustments -> Levels and dragged the grey (middle) adjustment slider toward the left to lighten the darker areas. Dragging the white (right) slider a little left also helps to reduce the maximum blackness of the image.
I've been really happy with JazzMoney: https://github.com/pivotalexperimental/jazz_money I'm looking over the limited documentation available and so far I'm not persuaded to switch. I'm very curious about measuring code coverage - nothing seems to be mentioned there about it, but I imagine the Goog does do that.
I'm looking to branch out after having used qUnit for the last year or so. Looks like this framework does mocking REALLY well (which I feel like I can't do well in qUnit). But it's v8 specific, so I can't test if Internet Exploder won't screw up my script.
Would anybody recommend any other unit-test frameworks for mocking stuff out?
There's also a fantastic tool for running those tests headlessly with jasmine-headless-webkit[0]. The benefit is that you can, if you so desire, test against the DOM as there is a complete browser in the background.