haim-io / cypress-image-diff

Visual regression test with cypress
MIT License
240 stars 62 forks source link

JSON report not generated when cypress-split plugin in also used #221

Closed aamir-yaseen-baba closed 2 weeks ago

aamir-yaseen-baba commented 3 weeks ago

JSON files are not generated, if we use cypress-split plugin for parallelization in CI. Without cypress-split plugin it works fine. Any help is highly appreciated. Screenshot_2024-06-24-19-23-48-014_com android chrome-edit

aamir-yaseen-baba commented 3 weeks ago

Changing the order of plugins (cypress-split first and getCompareSnapshot after it ) in the setUpNodeEvents() seems to fix the issue in case all the tests pass. However, the JSON file for failing test is not generated sometimes 🤔

kien-ht commented 2 weeks ago

Hi @aamir-yaseen-baba, speaking of the missing JSON report, please take a look at #183 or #177. Secondly, parallelization is not supported at the moment, so the generated JSON might not be what you would desire. Joining JSON together is on you. We have a related issue here. Please watch or upvote this issue. If we get more feature requests about the parallelization run, we will proceed with its implementation. Or if anyone has some time, pull requests are welcome.