Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

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

Open
rjcorwin opened this issue Sep 17, 2015 · 2 comments
Open

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

rjcorwin opened this issue Sep 17, 2015 · 2 comments
Labels

Comments

@rjcorwin
Copy link

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 #364 which isn't fun but manageable.

@ruyadorno
Copy link
Contributor

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.

@mteodori
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants