-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat: single file HTML report #2540
Conversation
adds single file report alongside existing one. I guess it should be tested(?), but still for now it's only proof of concept (image is still standalone file tho! :P [but honestly who cares about image if it doesn't load ;x]) |
An image can be added with a data-url. Or we can use our new svg: https://stryker-mutator.io/images/stryker.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up!
packages/core/src/reporters/html/single-file-template/single-file-template.ts
Outdated
Show resolved
Hide resolved
packages/core/src/reporters/html/single-file-template/single-file-template.ts
Outdated
Show resolved
Hide resolved
I'm actually thinking that we should add this with a configuration option. For big projects, it's kind of a waste to have 2 reports for each run, since file size can rise significantly. @simondel what is your take on this?
|
In any case, unfortunatelly I have very little time during next two weeks or so. Mostly university stuff + personal problems, so if you could carry on this issue from this point :) |
I would prefer to have only one index.html with all-in-one. |
@kmdrGroch I'm finishing this one. Want to get it in the 4.3 release 😍 |
Output the
index.html
file without the need for external resources. This will make using it in CI/CD pipelines.With this, you can simply open the
index.html
file in your browser, without first needing to extract all files to a directory. This will also make Stryker compatible with the azure-devops-mutationreport-publisher.If you were relying on the
reports/mutation/html/bind-mutation-test-report.js
file containing the report JSON, please migrate to the new JSON reporter: https://stryker-mutator.io/docs/stryker/configuration#reporters-stringfixes: #2188