Re: [jasmine-js] Node and backbone testing with jasmine

115 views
Skip to first unread message

Doug Reeder

unread,
Aug 28, 2012, 9:10:54 AM8/28/12
to jasmi...@googlegroups.com
FWIW, I considered jasmine-node for testing my backend, but went with Vows instead.  The syntax is different, but asynchrony is handled more readably.

-- Sent from my HP Pre 3



On Aug 28, 2012 12:58 AM, Ro Rao <substa...@gmail.com> wrote:

Hi all, Jasmine testing noob here, I have a Node app with a Backbone front end.  If I install jasmine-node (https://github.com/mhevery/jasmine-node), will I be able to test both my front end app and my backend node app?  

Can anyone point me to any resources that could help me get started?  i.e. how to best structure my tests, frontend vs backend tests, best practice for folder structure, etc?

Thanks, any help is appreciated!
Ro

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/WsOrLbR9qwsJ.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.

Alon Salant

unread,
Aug 28, 2012, 2:00:51 PM8/28/12
to jasmi...@googlegroups.com
You can write both your node specs and browser specs using Jasmine but will use different runners. For example, we're using jasmine-node for server-side specs and jasmine-headless-webkit for client-side. 

Regarding the comment about async syntax, jasmine-node includes an extension to jasmine that works well with node's async callback apis (https://github.com/mhevery/jasmine-node#async-tests).

Alon
Reply all
Reply to author
Forward
0 new messages