From 2b385a6ec53cc4eae6348fc9195296eb36f94dd5 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 16 Nov 2019 00:36:32 -0800 Subject: [PATCH] Add an RCF that uses t.d.a. add-lib to load test deps This makes it easier for me to develop and test `next.jdbc` in the same REBL setup I use for World Singles Networks development. --- test/next/jdbc/test_fixtures.clj | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/next/jdbc/test_fixtures.clj b/test/next/jdbc/test_fixtures.clj index fde8fe5..3708366 100644 --- a/test/next/jdbc/test_fixtures.clj +++ b/test/next/jdbc/test_fixtures.clj @@ -126,3 +126,21 @@ CREATE TABLE " fruit " ( ["Orange" "juicy" 89 88.6]] {:return-keys false}) (t))))) + +(comment + ;; this is a convenience to bring next.jdbc's test dependencies + ;; into any REPL that has the add-lib branch of tools.deps.alpha + ;; which allows me to develop and test next.jdbc inside my work's + ;; "everything" REBL environment + (require '[clojure.tools.deps.alpha.repl :refer [add-lib]] + '[clojure.java.io :as io] + '[clojure.edn :as edn]) + (def repo-path "/Developer/workspace/next.jdbc") + (def test-deps (-> (io/reader (str repo-path "/deps.edn")) + (java.io.PushbackReader.) + (edn/read) + :aliases + :test + :extra-deps)) + (doseq [[coord version] test-deps] + (add-lib coord version)))