Ok, I'm using Ember-App-Kit which uses Testem/Qunit, but I can't figure out how to debug tests, especially since either Testem or Qunit close the QUnit tests window so I can't set any breakpoints, and node debug
with debugger
doesn't work since it's in browser.
I tried to set the debug: true
property in grunt-contrib-testem
but that didn't do anything..
So if anyone can help, that would be awesome. I'm using the default EAK setup without any changes.
You'll need to do a few things:
grunt server
task running in one window -- this will rebuild your test assets and compile them into the build/test directory.npm install -g testem
) then calltestem
from your app's root directory. Alternatively, you can rungrunt test:server
, which will let you run testem without installing globally.debugger
statement in yourtest
body. In an open Chrome window running the Testem harness, open your Developer Tools console window.