Say I have two tests:
(defun func-one () nil)
(defun func-two () (and (func-one) t))
(ert-deftest test-one ()
"Test basic functionality"
(should (func-one)))
(ert-deftest test-two ()
"Test advanced functionality"
(should (func-two)))
How can I run test-two
only if test-one
succeeds?
Or, perhaps,
(defun func-one () nil)
(defun func-two () (and (func-one) t))
(ert-deftest test-all ()
"Test basic functionality"
(should (func-one))
(should (func-two)))
Testing func-two
only if func-one
passes, for example.
Or even
(defun func-one () nil)
(defun func-two () (and (func-one) t))
(defun func-thr () (or (func-one) t))
(ert-deftest test-one ()
"Test basic functionality"
(should (func-one)))
(ert-deftest test-two ()
"Test advanced functionality"
(should (func-two)))
(ert-deftest test-thr ()
"Test advanced functionality"
(should (func-thr)))
Testing
func-two
only iffunc-one
passesfunc-thr
only iffunc-one
passes
but func-two
failing should not impede func-thr
from running.