Skip to content
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

HTML Report in one single file #2188

Closed
HonzaMac opened this issue May 12, 2020 · 4 comments · Fixed by #2540
Closed

HTML Report in one single file #2188

HonzaMac opened this issue May 12, 2020 · 4 comments · Fixed by #2540
Labels
🚀 Feature request New feature request

Comments

@HonzaMac
Copy link

Is your feature request related to a problem? Please describe.

We are using Jenkins for builds and we are attaching mutation html report as artefact.

image

Problem is, when I click on report I see only that custom elements are not supported.
Root cause are security policies for downloading/linking files from html file for JS files.

Screenshot 2020-05-12 at 15 59 58

User receive errors from loading JS files.

Describe the solution you'd like

It would be best, if all 3 required files would be inlined in one html report.
We would not need any alowance and sending over this report would be far easier then using compressed files.

@HonzaMac HonzaMac added the 🚀 Feature request New feature request label May 12, 2020
@nicojs
Copy link
Member

nicojs commented May 12, 2020

Thanks @HonzaMac for opening this feature request.

I've tried to merge it all into one file once before. However this poses a problem if your JavaScript source code has a string '</script>', as it will close the html script tag. I didn't want to spent a ton of time investigating it.

Do you know a way around the issue? Otherwise I guess we could enable it with an optional config setting.

@HonzaMac
Copy link
Author

HonzaMac commented May 13, 2020

@nicojs I think we should go with escaping of that values.
Do you have in some branch that "merge" into file? I can follow up and fix escaping.

@HonzaMac
Copy link
Author

Thank you!

@nicojs
Copy link
Member

nicojs commented Dec 22, 2020

Sure thing! We will release a new version later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature request New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants