taras42 / karma-jasmine-html-reporter

A Karma plugin. Dynamically displays tests results at debug.html page
MIT License
44 stars 17 forks source link

Not showing up at debug.html #5

Open Martinspire opened 9 years ago

Martinspire commented 9 years ago

I'm not sure why but i've added it to my reporters but it isn't showing up at my debug.html page and i don't see any html being generated. I do see messages in console but my view is completely empty.

I've already tried adding karma-html-reporter and others but it just stays empty.

Any idea on what is going wrong?

taras42 commented 9 years ago

Hello. Is project open source? I would fork it and see what's the deal.

warpdesign commented 9 years ago

Same thing here. I can see "jasmine" being displayed, and after a few ms page gets empty.

warpdesign commented 9 years ago

I saw that in the console:

html.jasmine.reporter.js:141 Uncaught TypeError: Cannot read property 'appendChild' of null

Line 141 is:

banner.appendChild(createDom("span", {className: "duration"}, "finished in " + timer.elapsed() / 1000 + "s"));
josephlaw commented 8 years ago

Please go to Karma server to check the result e.g. http://localhost:9876/debug.html

josersleal commented 7 years ago

@josephlaw the window auto closes. Only progress reporter output (dots) is seen

cronon commented 6 years ago

@warpdesign I've got the same error. If I understand this correctly, it happens because initially banner is appended not to the main document, but to the iframe where tests are run. So if there is line like document.body.innerHTML = '' in tests, it also removes that banner.

andy-armstrong commented 6 years ago

I'm seeing the same problem with Jasmine 2.5.2, but only when running async tests. If I'm understanding this correctly, it appears to be confused by the out-of-order invocation of the callbacks. I'm hoping that the Jasmine 3 version here will resolve this problem:

https://github.com/taras42/karma-jasmine-html-reporter/pull/32

srikanta2192 commented 5 years ago

I am using 2.99 and the issue still persists, I am not finding info anywhere. What should i do about this ?