Commits

Jim Ursetto committed 83b6a82

Have make-standard-reporter return #f if a failure occurred

Comments (0)

Files changed (1)

         (successful 0)
         (pending 0))
     (lambda (data #!key (mode 'adhoc))
-      (if (eq? mode 'summary)
-          (fprintf report-port "~%~%Total: ~A Successful: ~A Failed: ~A Pending: ~A ~%" (+ failed successful pending) successful failed pending))
       (cond
+       ((eq? mode 'summary)
+        (fprintf report-port "~%~%Total: ~A Successful: ~A Failed: ~A Pending: ~A ~%"
+                 (+ failed successful pending) successful failed pending)
+        (= failed 0))
        ((context? data) #t)
        ((example? data) #t)
        ((example-result? data)