Hello all
I found interesting behaviour of clojure when debugging why tests aren't
working when build incanter with maven...
In incanter there is following code:
(def test-names [:core-tests
:stats-tests
:io-tests
:charts-tests
:internal-tests
:chrono-test
:transformations-tests
:probability-tests
:information-theory-tests
:bayes-tests])
(def test-namespaces (map #(symbol (str "incanter." (name %))) test-names))
(defn run "Runs all defined tests" []
(println "Loading tests...")
(apply require :reload-all test-namespaces)
(apply run-tests test-namespaces))
that dynamically loads and executes set of tests. The problem is
if :reload-all option is used, then tests, defined in incanter.charts-tests
aren't working. But when i change it to :reload, then all works fine.
It seems, that tests, that are loaded after charts-tests, completely reload
libraries, discarding previously loaded incanter.chart library, that is
used only in charts-tests...
Question - this is feature of require? or this is a bug?
--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/ http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en