The test assertions in clojure-test-test are run entirely within the test-ns-hook. This makes the code difficult to read and maintain as the assertions are not differentiated by logical scope other than by position.
Likely the code was written this way to avoid running the tests defined by defspec during the test run. This can be avoided by filtering the tests within test-ns-hook, allowing assertions to be grouped by deftest in the main body of the namespace.
I've just signed the Clojure CA.
This refactoring entailed a number of individual steps. I can provide individual patches if you'd like. Just let me know.
This is really good, thanks. I'm planning on applying it as soon as I get confirmation of the CA.
I just applied the patch to master.