mutation-testing-elements icon indicating copy to clipboard operation
mutation-testing-elements copied to clipboard

Add access to configuration details to HTML report

Open karfau opened this issue 4 years ago • 0 comments

I just learned that the config is already part of the HTML report but it's not visualized and was asked to share any ideas I have, on the topic:

The most simple approach I could think of is to add a link/button to the page that causes the config (or the whole JSON report) to the console, so it can easily be inspected in the browser using the dev tools.

Another nice option would be to offer a link/button to download the config/report as a file, so one can use the tool of choice to inspect it. Of course this is already possible using copy paste with the first proposal.

If you want to make the the data available visually inside the page, I have used https://github.com/yuda-lyu/w-jsonview-tree in the past, but of course depending on what you are using as a framework there are plenty of other options: https://npms.io/search?q=json+view

karfau avatar Jul 10 '21 05:07 karfau