kien-ht / cypress-image-diff-html-report

A HTML reporting module for Cypress-Image-Diff to parse the JSON output into a beautiful report
MIT License
26 stars 2 forks source link

Unable to generate a combined HTML report #4

Open KosalaiV opened 9 months ago

KosalaiV commented 9 months ago

I am executing cypress-image-diff-js in parallel, resulting in multiple JSON files. My goal is to create a consolidated cypress-image-diff-html-report using all these JSON files.

Presently, when I run cypress-image-diff-html-report generate, only the latest JSON file is taken into account.

This is an urgent need. Appreciate any assistance here.

TIA!

kien-ht commented 9 months ago

Presently, when I run cypress-image-diff-html-report generate, only the latest JSON file is taken into account.

@KosalaiV Hi, this is the expected behaviour at the moment. We do have a plan for viewing multiple report versions/report history both in local and CI/CD. But we need more time to define a clear expectation first, especially when it comes to CI/CD.

If you're in a rush, you could merge all of those JSON files together into one big JSON file beforehand and feed it to the report. Both cypress-image-diff-js and cypress-image-diff-html-report support custom report names.

KosalaiV commented 9 months ago

Presently, when I run cypress-image-diff-html-report generate, only the latest JSON file is taken into account.

@KosalaiV Hi, this is the expected behaviour at the moment. We do have a plan for viewing multiple report versions/report history both in local and CI/CD. But we need more time to define a clear expectation first, especially when it comes to CI/CD.

If you're in a rush, you could merge all of those JSON files together into one big JSON file beforehand and feed it to the report. Both cypress-image-diff-js and cypress-image-diff-html-report support custom report names.

Hey @kien-ht Yes, I did the same at the moment, Combined the JSON files programatically into one and generated a HTML report.