-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #493 Capture exit exception for reference
This stores any exit exception that may have occurred. The idea is to expose this exception to the user supplied ```at_exit``` block. ```ruby SimpleCov.at_exit do if SimpleCov.exit_exception # Do something or nothing due to an exception else # Do something or nothing due to no exception end end ``` Another method was added: ```exit_status_from_exception``` to reduce the logic in the at_exit block. I am not sure if it's worth adding this method though. There is still opportunity to refactor the ```at_exit``` block. I first attempted to refactor the @exit_status logic more but it will be a bigger change. If you want I can remove the ```exit_status_from_exception``` method from this PR
- Loading branch information
1 parent
4fe7a17
commit eb7e5b8
Showing
3 changed files
with
111 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters