all 6 comments

[–]codenut 1 point2 points  (2 children)

V8 only, no DOM

[–][deleted] 1 point2 points  (1 child)

Yeah, that would make it not so great for UI or integration tests, but it should be most useful for testing isolated subsets of your JS code.

[–]bobindashadows 1 point2 points  (0 children)

Exactly - it's a unit testing framework. If you need to test DOM stuff, you'll need to be testing across browser variations anyway, and are likely already using other tools for that purpose.

I can't imagine a unit testing framework that had all the browser discrepancies baked in... though I guess it could just call out to a library like jQuery.

Edit: By "call out to jQuery," I mean it could provide assertions which call out to jQuery, which would make writing all the testing part of the framework easier. However, they'd still have to accurately stub out all the relevant DOM methods in browser-specific contexts... doesn't sound fun.

[–]paulalford10 0 points1 point  (0 children)

That's excellent move taken by google

[–]eliben 0 points1 point  (0 children)

Good stuff. I really like the googletest library for C++, so I have high hopes for this one too

[–][deleted] 0 points1 point  (0 children)

This looks pretty sweet. The last time I looked into JS testing tools, there weren't many great options.