We're writing unit tests for our code in Clojure using clojure.test.
Some of our tests ignore the API and purposely break the code, in order to serve as documentation for latent deficiencies in the code.
However, we want to distinguish between failures of these tests, and failures of normal tests.
We haven't seen any suggestions in the clojure.test
documentation -- only (is (thrown? ...))
, which of course doesn't do what we need.
Any suggestions? Basically, we're looking for something like (is (not <condition>))
, except that the test framework should record an expected failure -- something like this.