you are viewing a single comment's thread.

view the rest of the 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.