Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

No unit testing? #70

Closed balupton closed 13 years ago

balupton commented 13 years ago

Hey guys,

Was just about to file a bug for now.js and provide some unit tests to test against it, and discovered you aren't using any (or at least not in the repo...)

Would you guys like me to add some?

I use unit testing extensively in History.js. With it I fire the tests up in the list of supported browsers and they run through all the tests and lets me know what's broken and what's not :)

ericz commented 13 years ago

Yes we need to do unit testing for sure. This is one of those things that we haven't been able to do due to being spread thin, but it's def on the list!

sridatta commented 13 years ago

Seconded! Docs for the codebase and unit tests are what we desperately need.

balupton commented 13 years ago

Just tried a few unit testing frameworks (vows, nodeunit, and expresso) for my own stuff. Vows was extremely buggy, for nodeunit I didn't like it's syntax, and expresso worked great.

ericz commented 13 years ago

We made some integration tests here: https://github.com/ericz/now-tests

The repo is kind of out of date but we run them against every push. Because of the cross-network nature of Now we found it hard to write unit tests of substance so we created the integration test suite instead, using the Jasmine framework.