aboutsummaryrefslogtreecommitdiffstats
path: root/lib/conspire.scm
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-08-04 10:58:37 -0400
committerGravatar Peter McGoron 2025-08-04 10:58:37 -0400
commit90fa6934795f25561ca266f443b82d12ddc2c474 (patch)
tree184b67b84e44dfe515f0a2d79429fdbbdad21ba5 /lib/conspire.scm
parentrestructure (diff)
fix failing skipped tests
Diffstat (limited to 'lib/conspire.scm')
-rw-r--r--lib/conspire.scm14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/conspire.scm b/lib/conspire.scm
index 88d7272..1627ed1 100644
--- a/lib/conspire.scm
+++ b/lib/conspire.scm
@@ -368,11 +368,9 @@
(define-syntax test-skip-all
(syntax-rules ()
((_ body ...)
- (parameterize ((test-info
- (list 'replace
- (test-set 'skip-test?
- (lambda (_) #t)))))
- body ...))))
+ (test-group #f
+ (test-set! 'skip-test? (lambda (_) #t))
+ (let () body ...)))))
(define-syntax test-group
(syntax-rules ()
@@ -389,6 +387,12 @@
(lambda () cleanup-expr))))))
(define (test-exit)
+ (write
+ `((tests passed: ,(test-ref 'passed))
+ (tests failed: ,(test-ref 'failed))
+ (tests skipped: ,(test-ref 'skipped))
+ (total number of tests: ,(test-ref 'tests))))
+ (newline)
(exit (if (zero? (test-ref/default 'failed 0))
0
1)))