tests using Mocha and should.js now in locker

18 views
Skip to first unread message

Forrest Norvell

unread,
Feb 7, 2012, 12:08:05 AM2/7/12
to singl...@googlegroups.com
Hey everybody,

I just checked in the first tests written following our new strategy for writing tests. For various reasons, the core team is dissatisfied with Vows (some of which is vows itself, some of which is how we've been using it), and we've decided to transition over to using some TJ Holowaychuk magic in the form of Mocha and should.js. There's a Makefile for the whole project, and if you run "make tests" it'll run both the existing vows-based test suite and the new Mocha test...s (there's just the one test case for now). We're not going to try to boil the ocean and move the old tests over en masse, but the hope is that we can start opportunistically migrating from the old framework to the new, and at some point plug in some coverage tools to encourage us to write even more.

Big thanks to Kristján for doing all the research and putting all this together, and feel free to suggest further things for us to look at in testing-land. There are lots of frameworks and idioms but few established conventions in Node.js-land, so this is an exciting opportunity to figure some of this stuff out.

F
Reply all
Reply to author
Forward
0 new messages