New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headless unit testing framework. #17
Comments
Have you come across TestSwarm? (testswarm.com appears to be down, but you can read about it at https://github.com/jeresig/testswarm/wiki). Their opinion on headless testing:
Now, TestSwarm does seem a bit Alpha (especially since the main site doesn't seem to be loading!) but it could be good if universal browser support is a priority (maybe it's not?) The other thing to mention is the QUnit unit testing framework, which is quite nice. It's used by underscore.js - see the |
My main requirement is minimal overhead during the development cycle; I should be able to run the unit tests quickly on the command line as part of the make process, so that I can run them continuously as I'm developing. The tests must be fast. It seems reasonable to also have more comprehensive, distributed, asynchronous tests, outside the development cycle. With these you are notified later when tests fail. I put TestSwarm in that category. It'd be nice to have, but I'd prefer it in addition to the simpler headless tests. jQuery is heavily focused on providing compatibility across browsers. D3 is not a compatibility layer. Yes, I'd like it to have universal browser support, but having tests for a single environment (such as Node/V8) would give us at least 90% of the value from testing. I'd rather have D3 focus on using the W3C standard APIs, a forward-looking approach, then get burdened with all this cross-browser nonsense. The main goal here is to support rich, interactive visualization in SVG and that's going to require a fast, modern browser regardless! |
Implemented a simple testing framework using Node & env-js. I'm tempted to look at Zombie.js, though, since I had to excise large chunks of env-js to get it to play nice. Good news is that the tests have already uncovered a few small bugs in |
We should use env.js, now that 1.3 supports Node.
The text was updated successfully, but these errors were encountered: