javascript: generate report with yuitest-coverage.jar

Ehab

New Member
I just downloaded the yuitest-coverage software from here, followed the documentation on how to generate a code coverage report. I can create a nice report. But, in order to achieve this I have to do something which is not documented.First of all, I'm using jasmine for my unit test (maybe this matters). So, after I've run all my test (in the browser), I go to the console and the only thing which works is to type the following:\[code\]js-console> JSON.stringify(_yuitest_coverage)\[/code\]All the other described ways do not work: YAHOO, Y and YUITest are undefined!Can someone explain what I need to do to fix this ?
 
Back
Top