alexbeletsky / backbone-express-spa

Backbone.js + Express.js single page application boilerplate
431 stars 71 forks source link

Front-end tests #6

Open alexbeletsky opened 11 years ago

alexbeletsky commented 11 years ago

Prepare some Backbone.js tests for Views and Models.

Idea is to use Jasmine (Mocha?) and be able to run those by grunt.

joafeldmann commented 11 years ago

Maybe http://theintern.io/ might also be interesting for testing

alexbeletsky commented 11 years ago

I've seen in on the last JavaScript weekly issue and it looks attractive.

But for this boiler-plate I would probably try to keep as 'less-frameworks-used' as possible. Jasmine + PhantomJS + grunt task worked really nice before.

Again, if you can show some good examples of theintern tests for this project, I would be really happy.

joafeldmann commented 11 years ago

Haven't used theintern by now too, but maybe someone else can help? On the other hand I like the 'less-frameworks-used' approached. So you will use the same testing framework for front- and backend?

alexbeletsky commented 11 years ago

I'm thinking about Mocha both for front end and back end. Good part is that both are could be simply run by grunt, so it's easy to integrate with CI or use continuous testing.