Testing node.js

18 views
Skip to first unread message

Ian Petzer

unread,
Sep 27, 2013, 7:28:27 AM9/27/13
to nod...@googlegroups.com
Hello Noders,

There are sooooo many testing frameworks for node.js....

I'm not quite sure where to start.

Does anyone have a favourite ... ( and a possibly reason why..?)

Len Weincier

unread,
Sep 27, 2013, 7:33:56 AM9/27/13
to nod...@googlegroups.com
Hi Ian 

Nice writeup on just testing very simply : http://th3james.github.io/blog/2013/09/25/testing-code-is-simple/

We user mocha BDD style with Chai 


It makes for readable tests and its something I am used to :)

Len





--
CloudAfrica
0834006106




--
You received this message because you are subscribed to the Google Groups "Node Cape Town" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodecpt+u...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Visit this group at http://groups.google.com/group/nodecpt.
For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

Ian Petzer

unread,
Sep 27, 2013, 7:49:48 AM9/27/13
to nod...@googlegroups.com
Thanks Len!

Its also the most watched testing repo on the node toolbox: http://nodetoolbox.com/categories/Testing

So I'll give it a try....


Jörg Diekmann

unread,
Sep 27, 2013, 7:59:40 AM9/27/13
to nod...@googlegroups.com
I've been using https://npmjs.org/package/supertest

for the full-stack tests … Very readable tests.

-- 
Jörg Diekmann

Brett Ausmeier

unread,
Sep 27, 2013, 9:43:41 AM9/27/13
to nod...@googlegroups.com
I have been using Mocha and Chai, and Sinon for mocking.

Rudolf Meijering

unread,
Sep 27, 2013, 11:11:09 AM9/27/13
to nod...@googlegroups.com
We use mocha and supertest for functional api tests.
Rudolf Meijering

Marcin Jekot

unread,
Feb 14, 2014, 5:39:30 AM2/14/14
to nod...@googlegroups.com
I know this is an old thread, but picking up on testing again... It looks like this could be a cool series, provided there's a part 2 and onwards... ;-)

Reply all
Reply to author
Forward
0 new messages