tag:blogger.com,1999:blog-581197352358126527.post857358604168845672..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Testing Backbone.js with Standalone JasmineAnonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-581197352358126527.post-77280978117818647372011-12-25T13:49:45.217-08:002011-12-25T13:49:45.217-08:00@nEEbz Yah, the section labelled "include sou...@nEEbz Yah, the section labelled "include source files here..." is where the code under test is pulled in. And yah, it could get tedious. I was more trying this out to see if it was possible rather than exploring a best practice :)<br /><br />I would say that, when you are using something like require.js and there is only a single file to pull in, then something like this approach does make more sense.Anonymoushttps://www.blogger.com/profile/00135361916531185929noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-62623019762820528062011-12-25T09:16:11.166-08:002011-12-25T09:16:11.166-08:00where are you adding the reference to your code? I...where are you adding the reference to your code? I see you added the spec in HTML. Don't you need to add references to the actual code under test?<br /><br />e.g. if I have a BB model: MyModel.js<br />and I wrote specs for it MyModel-spec.js<br /><br />I'll need to refer both of them in SpecRunner.html? That seems a lot of work adding reference to every single js file.nEEbzhttps://www.blogger.com/profile/17780534746138516398noreply@blogger.com