-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/html reporter #2728
Fix/html reporter #2728
Conversation
I can't believe I forgot the right string quote character. Javascript, man...
What? No, seriously -- what? I change |
@ScottFreeCode looks like you just volunteered to write tests against the html reporter 😉 |
I just had a brainwave that I could do that fairly easily:
Preliminary experimentation indicates not only that this should be doable, but that it is way, way easier than any idea I've had for it in the past (e.g. using JSDOM or running multiple instances of Mocha somehow). I would actually like to finish this at some point... The downside? I have no idea how to get a coverage report out of our browserifying Karma setup, and we are not currently set up to send Coveralls coverage reports from more than one CI job (although if we got that figured out, we could check coverage in a wider variety of environments and get rid of a lot of missed branches in the code that are handling different environments; e.g. the On the other hand, the fact that the HTML reporter is non-covered on two counts (lack of tests for it and lack of running in Node even if we had tests for it) strongly suggests that any affect this PR has on coverage is coincidental and/or non-meaningful. (In fact, I'm not sure why its coverage counts aren't just a big flat bunch of 0s. Do we have somewhere that is loading, but not using, the file in Node somewhere in the tests?? It might be nice to get proper browser coverage and figure out for sure that there isn't already something trying to test this, before I get too thorough with my new tests...) |
Fixes potential issues with unescaped text, including in the querystring used as part of the grep links.
Also fixes #2300 and fixes the HTML half of #2298
Fixing #2285 is tricky. Per #1464, we can't just take the pathname out. There are a lot of ways to manipulate this, but all of them have some weird problem involved... with one possible exception: using the href and just dropping the search/hash from it.