X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Frun.lisp;h=c473754ff619078ef5bf260cc3a15ee63d6b5d79;hb=c7667c4ac1b77d7128e4c43da8f1997ea24d8921;hp=c81aba4e8e26aa5e0846e34f096e54895679a5c0;hpb=a3a3f45f2473649d64411e6e099c533c6c309fdd;p=fiveam.git diff --git a/src/run.lisp b/src/run.lisp index c81aba4..c473754 100644 --- a/src/run.lisp +++ b/src/run.lisp @@ -1,4 +1,4 @@ -;; -*- lisp -*- +;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :it.bese.fiveam) @@ -56,7 +56,7 @@ between test-cases has been detected.")) (defgeneric run-resolving-dependencies (test) (:documentation "Given a dependency spec determine if the spec is satisfied or not, this will generally involve running other -tests. If the dependency spec can be satisfied the test is alos +tests. If the dependency spec can be satisfied the test is also run.")) (defmethod run-resolving-dependencies ((test test-case)) @@ -89,6 +89,8 @@ run.")) (setf (status test) :circular)))) (t (status test)))) +(defgeneric resolve-dependencies (depends-on)) + (defmethod resolve-dependencies ((depends-on symbol)) "A test which depends on a symbol is interpreted as `(AND ,DEPENDS-ON)." @@ -128,6 +130,8 @@ run.")) (funcall test-lambda) result-list)) +(defgeneric run-test-lambda (test)) + (defmethod run-test-lambda ((test test-case)) (with-run-state (result-list) (bind-run-state ((current-test test))