-
-
Save llasram/1643212 to your computer and use it in GitHub Desktop.
deftest organization
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
(defn my-check [x] | |
(is (good? x)) | |
(defn another-check [x] | |
(is (alright? x)) | |
(def all-checks | |
[my-check another-check]) | |
(defn run-checks [browser] | |
(doseq [check all-checks] | |
(setup-for-test browser) | |
(check browser)) | |
(deftest check-ff | |
(run-checks :firefox)) | |
(deftest check-chromium | |
(run-checks :chromium)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment