I'm trying to programmatically load some clojure libraries to make a simple auto-test program.
What I end up sending to require is this
(require :reload '("peg" "test.peg-test"))
How do I transform that list into something useful, or am I totally barking up the wrong tree?
Are you aware that there are testing libraries available in clojure.contrib?
You may find it easier to do this if you orient your thinking around namespaces. If you look at Bill Clementson's user.clj you will find a useful function for clearing out the user namespace and reloading the base namespaces in preparation for bringing in your testing namespaces.
In any case, using namespaces your code would work like this:
(ns testing-peg
(:require [peg test.peg-test])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With