On Feb 14, 6:47 pm, Mike Meyer <mwm-keyword-googlegroups. 620...@mired.org> wrote: > So, the next question - possibly another name-space question. > > Is there any way to tell if inside a .clj file if it was invoked as a > script by clojure.main, vs. being loaded for use elsewhere?
No. > > What I'd like to do is make my unit tests usable in two modes: While > working on a bug, I'd like to be able to load them in the REPL to > rerun the subset of interest - possibly just the test which is > failing. However, I'd also like to be able to feed the script to > clojure.main with something like "clj test.clj" and have it run them > all. java -cp path/to/clojure.jar:path/to/your/src clojure.main -e "(run- tests 'your.namespace)" -- 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