Skip to content

Conversation

@gdavidkov
Copy link
Collaborator

This pull request introduces significant enhancements to the CTRF reporting functionality, including a new method for merging test reports, updates to the reporter class.

New CTRF Report Merging Functionality:

  • src/mergeResults.ts: Added a new mergeResults function that merges CTRF JSON reports based on a directory and file pattern, writes the merged report to a file, and validates the reports using a type guard.

Updates to Reporter Class:

  • src/reporter.ts: Refactored the GenerateCtrfReport class to remove legacy methods for handling previous reports.

Documentation Enhancements:

  • README.md: Updated the CTRF report merging instructions with examples using the new mergeResults function.

Test Updates:

  • tests/reporter.test.ts: Modified tests to simulate retries and flaky test scenarios, ensuring compatibility with the updated reporter logic.

@gdavidkov gdavidkov requested a review from Ma11hewThomas May 31, 2025 06:04
@gdavidkov gdavidkov changed the title Bugfix and improve ctrf merge Bugfix: Improve CTRF merge and error handling in hooks May 31, 2025
@Ma11hewThomas Ma11hewThomas self-assigned this Jun 1, 2025
@Ma11hewThomas Ma11hewThomas requested review from Ma11hewThomas and removed request for Ma11hewThomas June 1, 2025 08:45
@Ma11hewThomas
Copy link
Collaborator

Thanks for your contribution @gdavidkov, the new additions are great, however, the the change appears to impact support for retries and flaky property for specFileRetries.

Copy link
Collaborator

@Ma11hewThomas Ma11hewThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

2 participants