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

Correctly report uncaught error outcomes #9

Closed
wants to merge 3 commits into from

Conversation

robhanlon22
Copy link
Collaborator

@robhanlon22 robhanlon22 commented Aug 30, 2020

Previously, a test that had an exception outside of an assertion would appear to have passed. This handles the uncaught errors correctly. However, if/when amperity/greenlight#51 lands, this change should be reverted, as it's a workaround that should be handled correctly over in greenlight.

Builds on the fixes in #8.

(when (= type :step-end)
(run! ctest/do-report reports))
(when (= outcome :error)
(ctest/report {:type :error
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The failed step doesn't contain the actual exception, which is why I used report instead of do-report. I created an issue to track adding the actual exception to the event: amperity/greenlight#50

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Created a PR to add this functionality: amperity/greenlight#51

@robhanlon22
Copy link
Collaborator Author

Closing because amperity/greenlight#51 was merged.

@robhanlon22 robhanlon22 deleted the fix-error-output branch August 30, 2020 04:02
@robhanlon22 robhanlon22 restored the fix-error-output branch August 30, 2020 04:02
@robhanlon22 robhanlon22 deleted the fix-error-output branch August 30, 2020 04:04
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.

None yet

1 participant