On Jul 14, 2:59 pm, Brian Carper <briancar...@gmail.com> wrote:
> For peons like myself who still run tests from a REPL and want to see
> plaintext diffed output, apparently you can use this library and do
> (difftest.core/run-tests 'some-ns) instead of (clojure.test/run-test
> 'some-ns) and it seems to work well.
>
> Minor bug, on line 36 in difftest/core.clj [1], (ct/testing-vars-str)
> should probably be (ct/testing-vars-str m), I'm getting an exception
> otherwise:
> java.lang.IllegalArgumentException: Wrong number of args (0) passed
> to: test$testing-vars-str
>
> Thanks
> --Brian
>
> [1]http://github.com/brentonashworth/lein-difftest/blob/master/src/difft...

Brian,

Great point on using it from the REPL. I have added an example of this
to the usage section of the README.

I'm not sure what's going on with that error. As you can see from [1],
testing-vars-str takes no args. Also, I don't get an error message
when running as a Leiningen plugin or from the REPL.  Let me know if
you think of anything else that might be causing this problem. I
hacked this together today so I am sure there is something I'm
missing.

P.S.

I just pushed version 1.1.0 which uses clj-stacktrace for better
stacktraces on test errors.

[1] 
http://github.com/richhickey/clojure/blob/fbe0183713b92b2f96a68e2a0d0d654bb7ce93ff/src/clj/clojure/test.clj#L286

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to