yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 159 forks source link

How to get tests to run in the browser? #365

Open rjcorwin opened 8 years ago

rjcorwin commented 8 years ago

Debugging the tests in the browser as opposed to phantomjs would improve my workflow greatly. I'm still a grunt n00b but I imagine we would create a new Grunt task and just make sure that it doesn't quit as to give the user time to open a browser and debug. I've spent some time trying to get this working but no luck so far. Does anyone have any tips?

Also, I'm still dealing with https://github.com/yeoman/generator-backbone/issues/364 which isn't fun but manageable.

ruyadorno commented 8 years ago

hi @rjsteinert, thanks for all the issues reported!

please help me understand better what is the real problem with this one.

for now one thing you can do is to simply open test/index.html in a browser... but I'm not sure that was the solution you wanted.

mteodori commented 8 years ago

I use grunt serve:test for this (with mocha) which does exactly what you want everytime you add a new test file under test/spec/ you still have to add it manually to test/index.html though