generator-backbone icon indicating copy to clipboard operation
generator-backbone copied to clipboard

How to get tests to run in the browser?

Open rjcorwin opened this issue 8 years ago • 2 comments

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.

rjcorwin avatar Sep 17 '15 17:09 rjcorwin

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 the grunt 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.

ruyadorno avatar Sep 30 '15 19:09 ruyadorno

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

mteodori avatar Mar 21 '16 15:03 mteodori