-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback #14
Comments
re: Jasmine I think that's entirely down to opinion whether backboners (there has got to be a better way to say that) prefer Jasmine over Qunit. Speaking personally, after using Jasime exclusively for about 6 months with several backbone apps, I switched to Qunit for a number reasons--the primary being that I feel like the test runner is "better" (better look/feel, stack traces, try/catch options). I definitely agree that there's more noise in the community about testing Backbone with Jasmine, but I don't think that necessarily is a corollary to best practices. IMO the lynchpin to making backbone apps easier to test is using Sinon.js, not Jasmine. That said, I'm interested in whatever's pragmatic. @addyosmani / @tbranyen what do you think about including examples for both test suites? |
@wookiehangover That's fair enough :) Perhaps having examples for both test suites would be a compromise? |
Hey @addyosmani thanks so much for the feedback. I'm going to keep this issue open once this open sourced so others can chime in.
|
I think personally having two different test strategies in place that effectively produce the same result is overkill. We can pick one and stick to it. While the Backbone.js qunit tests are no good, us providing better ones is a worthwhile investment. QUnit is easier to get started with imho, making it a better introductory framework. Internationalization is nice, but the boilerplate is useful to get started on a new project. Sadly, no one starts with internationalization in mind and if we were to add facilities to this off the bat it would make the development much more complicated for most developers. It's important, but I don't think should be in the core. I think a sample project should be another github repo. |
Re: sample project This might sound a little crazy, but I think the primary sample should be another than a TODO app. @addyosmani already has a few of those already: https://github.com/addyosmani/backbone-boilerplates. The gallery gets my vote. Perhaps with some HTML5 video/canvas/etc. goodness |
+1 for jasmine |
@webxl I'm not sure if the project you meant to reference was this http://github.com/addyosmani/todomvc, but you're right :) It might be useful just showing the project implemented as a Todo app. They're generally quite simple and would enable someone to easily compare how Backbone's 'out of the box' Todo app compares with a version written using this boilerplate. @iros +1 on a sample project being in another repo, also +1 on just having one testing framework in there if you think it makes more sense. |
Hi guys, Firstly, sorry for the delay, but I didn't get any notification for this thread :( Secondly, a big thanks to @tbranyen for creating this boilerplate. That seems to be exactly what I need. Thirdly, another big thanks to @cowboy for creating the awesome build tool that is grunt. The more I use it, the more I like it. That being said and related to #10, I know that @webxl has done some work and opened a pull request regarding this, but I did some parallel work on it today and ended up with something that works quite well. I've took a slightly different route by using socket.io and wrapping the static server creation in a grunt task. Here's a gist to illustrate: https://gist.github.com/1621995 Basically, this task creates and setup a connect server (might be an express server as well) with the necessary configuration to setup socket.io. Then a custom middleware is used to trick the static middleware a little bit to inject a client-side script and establish a new websocket connection. The If you're ok, I might clean it a little bit and issue a pull request. |
Hey @mklabs I'd hold off on the pull request for now. I'm working on a new repository to contain all the build tasks. That way they can be tested, documented and distributed outside of the boilerplate project. In the future it'd be nice to have a command line utility to automatically fetch/update them. Maybe even through NPM... |
Sweet. Sounds like a reasonable option and a really good idea. I'd love to see that happen (even more if it's done through npm :p) |
Okay some updates:
|
I feel like we should add a lazyweb-request for someone writing a QUnit adapter to use jasmine syntax. I've heard this from multiple people... they prefer jasmine semantics and syntax but the async and testrunner in qunit is better. Possible to have the cake and eat it too?
|
Updates to this:
|
@tbranyen \o/ That's awesome. Love how this project has evolved! |
Yeah, seems like the last bits of this feedback are writing up documentation on integrating: https://github.com/creynders/grunt-jasmine-task and http://requirejs.org/docs/api.html#i18n Once that's done, I think this issue is good to be closed. :) |
This issue has long since been stagnant, closing now and forever hold its peace. |
As requested, here's my feedback and suggestions for the project:
Hope some of this is of help :)
The text was updated successfully, but these errors were encountered: