I am starting to learn how to write tests for my Clojure program.
I have a test with multiple assertions (calls to is
).
I want the test to stop running as soon as the first assertion fails.
Here is my test:
(deftest register-one-command
(testing "Register-one-command"
(do
(is (= 0 (count @test/list-of-commands)))
(test/add-to-list-of-commands ["A"])
(is (= 1 (count @test/list-of-commands))))))
If the first is
fails, I want the whole thing to fail.