Kaocha by default runs all tests it can find, providing a final summary on failures and errors when all tests have finished. With the
--fail-fast option the test run will be interrupted as soon as a single failure or error has occured. Afterwards a summary of the test run so far is printed.
- Given a file named "test/my/project/fail_fast_test.clj" with:
(:require [clojure.test :refer :all]))
When I run
Then the exit-code should be 1
And the output should contain:
Edit on GitHub
FAIL in my.project.fail-fast-test/test-2 (fail_fast_test.clj:9)
2 tests, 3 assertions, 1 failures.