+2004-11-27 Daiki Ueno <ueno@unixuser.org>
+
+ * test/lunit.el: Update copyright year.
+ (lunit-test-result-run): Fixed the argument of
+ lunit-test-listener-error listener.
+
2004-11-26 Daiki Ueno <ueno@unixuser.org>
* COMPILE (riece-test): Require 'lunit after when ./test is added
;;; lunit.el --- simple testing framework for luna
-;; Copyright (C) 2000 Daiki Ueno.
+;; Copyright (C) 2000-2004 Daiki Ueno.
;; Author: Daiki Ueno <ueno@unixuser.org>
;; Keywords: OOP, XP
(nconc (lunit-test-result-errors-internal result)
(list (cons case (cdr error)))))
(lunit-test-result-notify
- result 'lunit-test-listener-error case error)))
+ result 'lunit-test-listener-error case (cdr error))))
(lunit-test-result-set-assert-count-internal
result
(+ (lunit-test-result-assert-count-internal result)
")))))))
+(defun batch-lunit ()
+ (let ((load-path (cons (expand-file-name (car command-line-args-left))
+ (cons nil load-path)))
+ (files (directory-files (expand-file-name (car command-line-args-left))
+ t "^test-.*\\.el$"))
+ suite)
+ (setq suite (lunit-make-test-suite))
+ (while files
+ (when (file-regular-p (car files))
+ (load-file (car files))
+ (lunit-test-suite-add-test
+ suite
+ (lunit-make-test-suite-from-class
+ (intern (file-name-sans-extension
+ (file-name-nondirectory (car files)))))))
+ (setq files (cdr files)))
+ (lunit suite)))
+
(provide 'lunit)
;;; lunit.el ends here