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

Break into the debugger upon error #14

Merged
merged 4 commits into from
Apr 13, 2024

Conversation

foretspaisibles
Copy link
Contributor

This PR allows to open a debugger when unexpected errors occur in the testsuite.

Use a call to (testcase-break-into-the-debugger-on-errors) to arrange for this to happen. When this configuration is active, the following restarts are available in the debugger:
• ASSERTION-RETRY Which retries to evaluate the arguments of the failing assertion
and the assertion itself.
• TESTCASE-RETRY Which retries the current testcase.
• TESTCASE-CONTINUE Which registers an error and continues the current testcase.
• TESTCASE-RETURN Which registers an error and immediately returns from the current testcase.
• TESTCASE-STEP-UPWhichregistersanerrorandcontinuethecurrenttestcasewith- out breaking into the debugger.
• TESTCASE-SCROLL Which registers an error and continue the current testcase and other testcases higher in the call stack without breaking into the debugger.

The testsuites a-failing-argument-testsuite, a-failing-testcase-testsuite and a-compound-failing-testsuite can be used to experiment with this as in:

(ql:quickload '#:org.melusina.confidence/user)
(in-package #:org.melusina.confidence/user)
(confidence:testcase-break-into-the-debugger-on-errors)
(testsuite:a-compound-failing-testsuite)

This solves #4 opened by @lukego

@foretspaisibles foretspaisibles force-pushed the break-into-the-debugger-upon-error branch from 9dec3db to d33f8cf Compare April 13, 2024 17:51
@foretspaisibles foretspaisibles merged commit d33f8cf into main Apr 13, 2024
15 checks passed
@foretspaisibles foretspaisibles deleted the break-into-the-debugger-upon-error branch April 13, 2024 18:15
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