Skip to content

Commit

Permalink
Avoid code-walking in DEFINE-TESTCASE
Browse files Browse the repository at this point in the history
Rewrite the DEFINE-TESTCASE macro so that it does not rely on code
walking.  This approach is lengthy, brittle and hard to expand. It
furthermore has some unexpected inconvenience.

The DEFINE-TESTCASE macro is rewritten so that it only instruments
assertions using signal and handlers.
  • Loading branch information
foretspaisibles committed Apr 10, 2024
1 parent 50350d7 commit f414d71
Show file tree
Hide file tree
Showing 8 changed files with 501 additions and 440 deletions.
1 change: 1 addition & 0 deletions org.melusina.confidence.asd
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
(:file "assertion")
(:file "result")
(:file "testcase")
(:file "interactive")
(:file "entrypoint")))))

(asdf:defsystem #:org.melusina.confidence/development
Expand Down
20 changes: 15 additions & 5 deletions src/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,22 @@
(:export
#:quit
;; Results
#:assertion-success
#:assertion-failure
#:assertion-condition
#:testcase-result
#:record-result
#:testcase-outcome
#:testcase-path
#:testcase-name
#:testcase-total
#:testcase-success
#:testcase-failure
#:testcase-condition
;; Testcases
#:assertion-path
#:assertion-name
#:assertion-argument-names
#:assertion-argument-values
#:assertion-form
#:assertion-type
#:assertion-description
#:assertion-condition
#:define-testcase
#:without-confidence
#:*testcase-interactive-p*
Expand Down
Loading

0 comments on commit f414d71

Please sign in to comment.