HTML reporter fails if some Unicode characters are in use, causing tests to stop running #1893
Labels
area: browser
browser-specific
area: reporters
involving a specific reporter
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
I was working on a project that ran test vectors of the IdnaTest.txt Unicode data file, and I noticed that when certain Unicode characters were in use, the HTML reporter (but not the standard node.js reporters) would stop working properly. An example of such a test case is:
After laboriously trying to catch it in a debugger (I originally found this in a test case where I dynamically generated the functions, so I had to first write another preprocessing step to dump code to a file), I found that the problem was that there was a URIError that was thrown. Unfortunately, I don't have the exact error message or its exact location.
While I do understand that using random Unicode is likely to cause lots of issues, it would be nice to see the actual characters involved for debugging purposes, so I do like using crazy raw test names if possible.
The text was updated successfully, but these errors were encountered: