Skip to content

Instantly share code, notes, and snippets.

@sivajag
Created December 11, 2009 19:18
Show Gist options
  • Save sivajag/254438 to your computer and use it in GitHub Desktop.
Save sivajag/254438 to your computer and use it in GitHub Desktop.
;; 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