Skip to content

Improve the feedback provided by UpgradeTestHelper. #339

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mattbattison
Copy link

Previously, UpgradeTestHelper would fail immediately when it encountered an invalid upgrade step. This meant that a test using the helper would have to be run multiple times to flush out all the errors.

This change enhances the helper to combine all the errors into a single failure message where possible:

  • All public upgrade steps that should be package-visible will be shown as a single failure.
  • All errors relating to the sequence, UUID, Jira ID, and description will be shown as a single failure.

Previously, UpgradeTestHelper would fail immediately when it encountered
an invalid upgrade step. This meant that a test using the helper would
have to be run multiple times to flush out all the errors.

This change enhances the helper to combine all the errors into a single
failure message where possible:
- All public upgrade steps that should be package-visible will be shown
  as a single failure.
- All errors relating to the sequence, UUID, Jira ID, and description
  will be shown as a single failure.
@mattbattison mattbattison requested a review from RadikalJin March 19, 2025 11:52
@mattbattison mattbattison requested a review from jsimlo March 20, 2025 12:27
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants