;;
;; (lunit-class 'silly-test-case)
;; ______________________________________________________________________
-;; Starting test `test-1'
+;; Starting test `silly-test-case#test-1'
;; failure: (integerp "a")
;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;; ______________________________________________________________________
-;; Starting test `test-2'
+;; Starting test `silly-test-case#test-2'
;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-;; 2 total, 1 failures, 0 errors
+;; 2 runs, 1 failures, 0 errors
;;; Code:
(signal 'lunit-failure (list ',condition-expr)))))
(defvar lunit-test-results-buffer "*Lunit Results*")
-(defvar lunit-test-method-regexp "^test-")
(luna-define-class lunit-test-printer (lunit-test-listener))
(luna-define-method lunit-test-listener-start ((printer lunit-test-printer) case)
(princ (format "\
______________________________________________________________________
-Starting test `%S'
-" (lunit-test-name-internal case))))
+Starting test `%S#%S'\n"
+ (luna-class-name case)
+ (lunit-test-name-internal case))))
(luna-define-method lunit-test-listener-end ((printer lunit-test-printer) case)
(princ "\
(mapatoms
(lambda (symbol)
(if (and (fboundp symbol)
- (null (get symbol 'luna-method-qualifier))
- (string-match lunit-test-method-regexp (symbol-name symbol)))
+ (null (get symbol 'luna-method-qualifier)))
(push (lunit-make-test-case class symbol) tests)))
(luna-class-obarray (luna-find-class class)))
(lunit