Add package documentation
[sheep] / src / test / main.lisp
index 3cfb79e163d535176a4b2d3e197f766fd83304ab..270609760f7b101bc940a224c2f602f989af8115 100644 (file)
  `(deftest
    ,source
    (lambda ()
  `(deftest
    ,source
    (lambda ()
-    (load ,source)
-    (ignore-errors (string= (slurp-file ,target) (docgen:export-package ,pkg))))))
+    (handler-case
+     (progn
+      (load ,source)
+      (string= (slurp-file ,target) (docgen:export-package ,pkg)))
+     (docgen:validation-failure (vf)
+      (format t "Error gotten: ~A~%"
+       (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :docgen)) vf)))
+     (error (e) (format t "Error gotten: ~A~%" e))))))
 
 (defmacro deffailure-func-test (name doc expected)
  `(deftest
 
 (defmacro deffailure-func-test (name doc expected)
  `(deftest