Open Martinspire opened 9 years ago
Hello. Is project open source? I would fork it and see what's the deal.
Same thing here. I can see "jasmine" being displayed, and after a few ms page gets empty.
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"));
Please go to Karma server to check the result e.g. http://localhost:9876/debug.html
@josephlaw the window auto closes. Only progress reporter output (dots) is seen
@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.
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
I am using 2.99 and the issue still persists, I am not finding info anywhere. What should i do about this ?
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?