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

expectedError and console output #1201

Open
pieter-bos opened this issue May 15, 2024 · 1 comment
Open

expectedError and console output #1201

pieter-bos opened this issue May 15, 2024 · 1 comment
Labels
A-Enh Enhancement M-log Misc: Error reporting and logging

Comments

@pieter-bos
Copy link
Member

I've had some trouble in the past explaining that expectedError is a testing fixture yet also causes the error to be "inverted" in the console output. That is: an example that should fail contains some expectedError declaration, and therefore outputs nothing. I think it's more intuitive that this marker is only treated as an inverting error in the testing framework, but leaves the console output alone for didactic purposes.

@pieter-bos pieter-bos added A-Enh Enhancement M-log Misc: Error reporting and logging labels May 15, 2024
@bobismijnnaam
Copy link
Contributor

Possibly the error output could be modified with "expected error", to be clear that this is a succesful failure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Enh Enhancement M-log Misc: Error reporting and logging
Projects
None yet
Development

No branches or pull requests

2 participants