Created
December 11, 2009 19:18
-
-
Save sivajag/254438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; A Simple macro that enable to mark your test | |
;; to pending | |
(defmacro deftest-pending [name & body] | |
(let [message (str name " is pending !!")] | |
`(deftest ~name | |
(println ~message)))) | |
;; To mark a test pending all you have to do is | |
;; Change deftest to deftest-pending | |
(deftest-pending list-of-account-should-return-empty-array | |
(is (= () (list-of-accounts)))) | |
(run-tests) | |
Testing ns1.test | |
list-of-account-should-return-empty-array is pending !! | |
Ran 1 tests containing 4 assertions. | |
0 failures, 0 errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment