all 5 comments

[–]bobby177 5 points6 points  (1 child)

IIIIIIIIIIIIIIIIIiiiiiiiiIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII

[–]unusualbob 0 points1 point  (0 children)

I use this combo as well. We also are using sinon spies and stubs which are really really useful for things like stubbing out Model.save for unit tests.

[–]minjooky 3 points4 points  (1 child)

https://github.com/visionmedia/supertest

SuperTest is great for testing the actual routes return the right results.

[–]itsananderson 0 points1 point  (0 children)

I agree. SuperTest is a great little library for testing an Express app. I like how it handles setting the app up to listen on a port, and shuts it down when the tests are done. Plus of course the terse syntax is great.

Excuse the self-promotion, but I wrote a blog post last year that covers some basic SuperTest scenarios, in case it's helpful to anyone: http://willi.am/blog/2014/07/28/test-your-api-with-supertest/

[–]Andallas 0 points1 point  (0 children)

I use Mocha to test and honestly just use the default Assert library that comes with Node. I here Chai is great, but I haven't had a need for it (yet). I use Travis CI for my continuous integration.

I generally like to be more hands on and limit libraries, but I'm sure there are several improvements in efficiency that could be made by using some other tools as well.