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

fix: issues with sending results and completing a test run in the Cypress reporter #642

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

gibiw
Copy link
Contributor

@gibiw gibiw commented Jul 29, 2024

fix: issues with sending results and completing a test run

  • fixed an issue with the reporter completing the test run before all results are sent to Qase
  • fixed an issue with the reporter not sending all results to Qase

Fixes #640 #558


feature: share a state between the different instances of the reporter

  • update a InternalReporterInterface. Added a new methods sendResults and complete to send the results and complete the test run.
  • add StateManager class to manage and share the state of the reporter between the different instances of the reporter.

Completely redesigned the reporter's workflow:

  • Hooks that are executed before and after all tests will be used to create and complete test runs.
  • The reporter's state will share between all instances of reporter through a file.

Component interaction diagram:
image

- update a `InternalReporterInterface`. Added a new methods `sendResults` and `complete` to send the results and complete the test run.
- add `StateManager` class to manage and share the state of the reporter between the different instances of the reporter.
- fixed an issue with the reporter completing the test run before all results are sent to Qase
- fixed an issue with the reporter not sending all results to Qase

Fixes #640 #558
@gibiw gibiw merged commit 9edc1a9 into release/qase-cypress-2.1.0 Jul 30, 2024
19 checks passed
@gibiw gibiw deleted the fix/cypress branch July 30, 2024 08:22
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