Server side backbone testing

17 views
Skip to first unread message

mwball

unread,
Feb 15, 2012, 12:28:31 PM2/15/12
to Cincinnati JavaScript User Group
Hey everybody,

I'm working on a node project. On the client I'm using backbone, _,
jQuery, etc.

I want to write server side specs for my client side code so I've been
looking at jasmine-node.

For the dom I was looking at jsdom, but it's kind of driving me
crazy. Does anyone have an alternative suggestion for testing client
side code with node and jasmine, or node and something else?

Thanks,

Mike

Chris Nelson

unread,
Feb 15, 2012, 2:15:57 PM2/15/12
to cin...@googlegroups.com
Hey Mike,

The closest I've seen to a solution to this is what Spine is doing with Hem.  If you create a spine.js application you will be able run jasmine specs in a similar manner to how rails does it with the asset pipeline.  I'm thinking about trying to do something similar for backbone using browserify, but am not really working on any node projects right now so haven't had a good excuse.  But maybe you could tread some new ground here and be open-source famous :)

--Chris


--
You received this message because you are subscribed to the Google Groups "Cincinnati JavaScript User Group" group.
To post to this group, send email to cin...@googlegroups.com.
To unsubscribe from this group, send email to cincijs+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cincijs?hl=en.


mwb...@gmail.com

unread,
Feb 15, 2012, 2:46:49 PM2/15/12
to cin...@googlegroups.com
Wel thanks Chris, I'm learning right now and you just dropped Spine,
Hem and Browserify on me!

I'll continue on...

Reply all
Reply to author
Forward
0 new messages