generator-backbone
generator-backbone copied to clipboard
How to get tests to run in the browser?
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.
hi @rjsteinert, thanks for all the issues reported!
please help me understand better what is the real problem with this one.
- do you want to have the html files served by
connect
like used on thegrunt serve
task ? - do you want to have the tests automatically running on each code change using
livereload
?
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.
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