jasmine - How to see errors of a Testacular/AngularJS test -
i've inherited angularjs/testacular/jasmine unit test suite , having difficulty determining how run test , see associated failure messages. is, can run tests, can ddescribe run 1 test, , can see fails. have no way determine why failing.
i've installed firebug , can see console.log statements, not javascript errors (i assume js error since abruptly ends). saw "debug.html" endpoint testacular have no clue how i'd use it.
how can see javascript errors causing test fail?
i'm not familiar firebug, if you're able capture chrome browser can open developer console (tools -> javascript console) , see errors there. can set breakpoint when javascript console open putting line
debugger; in code. next time tests run, chrome pause @ line , can use console inspect variables.
Comments
Post a Comment