As a developer
When an audit test fails
I want to be able to view the lighthouse report for the failure
So that I can see the exact reason for the failure
Lighthouse supports multiple output formats - this would be --output=[JSON,HTML]
JSON outputs to STDOUT by default - would need to check what it does with HTML output
Ideally we would export the HTML report to a file, while capturing JSON to STDOUT. If we can't do this, we can export both HTML and JSON to a file, and read the file to grab the results. If the audit passes, we can clean up the test artifacts. If the audit fails, we can let the user know where to find the HTML report.
As a developer
When an audit test fails
I want to be able to view the lighthouse report for the failure
So that I can see the exact reason for the failure
Lighthouse supports multiple output formats - this would be
--output=[JSON,HTML]JSON outputs to STDOUT by default - would need to check what it does with HTML output
Ideally we would export the HTML report to a file, while capturing JSON to STDOUT. If we can't do this, we can export both HTML and JSON to a file, and read the file to grab the results. If the audit passes, we can clean up the test artifacts. If the audit fails, we can let the user know where to find the HTML report.