lein-difftest is a completely new project that does not depend on Deview. It depends on many of the same libraries as Deview but is much simpler. It may be used as a Leiningen plugin or from the REPL.
To use it from Leiningen you simply add
lein-difftestas a dev-dependency. See lein-difftest for more information. Once you have this new library in place, run
lein testand you will see the new and improved results. The example below shows two test runs. One without lein-difftest and the other with.
To use it from the REPL there is a helper function named
test-nswith takes care of reloading the target namespace and turning off color.
user> (use 'difftest.core) user> (test-ns 'some.test.namespace)
This project is also a great example of using Robert Hooke to extend Leiningen. Before using Hooke, I had to copy the entire leiningen.test/test function into my plugin code so that I could modify one of its function calls. With Hooke, I simple intercept the call to said function and ensure that it has the correct arguments.