-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Implement a unit test for the BaseException
class
#18093
Conversation
The issue from mozilla#18003 hasn't been shown to be caused by PDF.js, but it did surface that we don't have (direct) unit test coverage for the `BaseException` class. This made it more difficult to prove that the `stack` property was already available on exception instances, but more importantly it caused the CI to be green even though the suggested change would have caused the `stack` property to disappear. To avoid future regressions, for e.g. similar changes or a rewrite from a closure to a proper class, this commit introduces a dedicated unit test for `BaseException` that asserts that our exception instances indeed expose all expected properties.
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ac397bbd7d0185f/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/0c05e663369a8ac/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ac397bbd7d0185f/output.txt Total script time: 2.64 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/0c05e663369a8ac/output.txt Total script time: 10.21 mins
|
/botio-linux unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/38c63b72017f305/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/38c63b72017f305/output.txt Total script time: 2.61 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, thank you!
The issue from #18003 hasn't been shown to be caused by PDF.js, but it did surface that we don't have (direct) unit test coverage for the
BaseException
class. This made it more difficult to prove that thestack
property was already available on exception instances, but more importantly it caused the CI to be green even though the suggested change would have caused thestack
property to disappear.To avoid future regressions, for e.g. similar changes or a rewrite from a closure to a proper class, this commit introduces a dedicated unit test for
BaseException
that asserts that our exception instances indeed expose all expected properties.