Skip to content
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

Feature request: Add Exit Codes for Comparison and Report Generation #65

Open
Oleksiichchch opened this issue Jul 6, 2024 · 0 comments

Comments

@Oleksiichchch
Copy link

Hi,

Thank you for your work on testcafe-blink-diff! It's a great tool, and I've found it very useful.

However, I'm currently facing a challenge when integrating this tool into CI/CD pipeline. Specifically, there are no distinct exit codes for comparison results and report generation outcomes. Without these, I'm forced to implement a workaround by parsing the HTML report, which feels like a hack.

To improve the usability of testcafe-blink-diff in automated environments, I propose adding standard exit codes, like:

0 - Success: No visual differences found, and report generation successful.
1 - Visual Differences Found: The comparison detected visual differences.
2 - Report Generation Error: The comparison completed, but there was an error generating the report.
3 - Comparison Error: An error occurred during the comparison process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant