Skip to content

Commit 3b02ae6

Browse files
committed
tests: cljs opts for test-doc moved to file
more os friendly to put these opts in a file so we don't suffer various command line parsing issues.
1 parent 5ca3736 commit 3b02ae6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

script/test_doc.clj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818

1919
(defn run-cljs-doc-tests []
2020
(status/line :head "Running code block tests under ClojureScript")
21-
(shell/command "clojure" "-M:test-common:test-docs:cljs:cljs-test"
22-
"--compile-opts" "{:warnings {:fn-deprecated false :single-segment-namespace false}}"
23-
"--dir" "target/test-doc-blocks/test"
24-
"--out" "target/cljsbuild/doc-tests"))
21+
(let [compile-opts {:warnings {:fn-deprecated false :single-segment-namespace false}}
22+
opts-fname "target/cljsbuild/test/doc-tests-opts.edn"]
23+
(spit opts-fname compile-opts)
24+
(shell/command "clojure" "-M:test-common:test-docs:cljs:cljs-test"
25+
"--compile-opts" opts-fname
26+
"--dir" "target/test-doc-blocks/test"
27+
"--out" "target/cljsbuild/doc-tests")))
2528

2629
(defn -main [& args]
2730
(when (main/doc-arg-opt args)

0 commit comments

Comments
 (0)