I *strongly* recommend doing all your testing in a repl buffer. That given, there are two ways to solve your problem. The first, which I prefer, is to start by testing everything:

    (use 'midje.repl)
    (autotest)

Then, when you change any text and save the namespace it's in, all tests that depend on that namespace will be rerun, including the one you're specifically working on.

The other alternative is to rerun your specific test with something like:

    (check-facts #"fact description")

... or, once you've run a specific fact:

    (recheck-fact)



r/ Wobben wrote:
hello,

Suppose I have this test

(facts "do-a-thing" {:exercise 1      :points 1}      (do-a-thing 3) =>
46656.0         (do-a-thing 1) => 4.0        (do-a-thing 0) => 1.0)


Is there a way I can only run this test
I tried lein midje :filter exercise 1
but that one fails.

Roelof

--
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
---
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to clojure+unsubscr...@googlegroups.com
<mailto:clojure+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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
--- You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to