The formatter in cucumber-html already supports embedding content
with mime-types starting with "text/" into the HTML report -
this just makes cucumber-jvm not swallow the text content before
it gets that far.
Output embedded text in HTML report
Now that I have thought about this, I actually think we should instead throw an exception in embed if the mimeType starts with "text/". The exception should contain a hint about using the write method instead.
Oh yeah, I didn't even see the write method! Hmm. That works for my case, but I wonder if there's a broader case for being able to embed files of whatever type people want, and just linking to them rather than displaying them inline in the html? We might want to allow some sort of customisable filename or link text if we do that though... thoughts?
So the idea would be that for video / images we could display inline, and anything else we'd just link to to allow someone to download it or whatever their browser wants to do with it.
Attribution. Closes #501.