File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 88
99(ns cljs.spec.test
1010 (:require
11+ [cljs.analyzer :as ana]
1112 [cljs.spec :as spec]
1213 [cljs.spec.impl.gen :as gen]))
1314
1617*ns* if no ns-sym are specified."
1718 [& ns-syms]
1819 (if (seq ns-syms)
19- (run-var-tests (->> (apply spec/speced-vars ns-syms)
20- (filter (fn [v] (:args (spec/fn-specs v))))))
21- (run-tests (.name ^clojure.lang.Namespace *ns*))))
20+ `(cljs.spec.test/run-var-tests
21+ (->> ~(spec/speced-vars* ns-syms)
22+ (filter (fn [v] (:args (spec/fn-specs v))))))
23+ `(cljs.spec.test/run-tests '~ana/*cljs-ns*)))
2224
2325(defn run-all-tests
2426 " Like clojure.test/run-all-tests, but runs test.check tests
2527for all speced vars. Prints per-test results to *out*, and
2628returns a map with :test,:pass,:fail, and :error counts."
2729 []
28- ( run-var-tests (spec/speced-vars )))
30+ `(cljs.spec.test/ run-var-tests ~ (spec/speced-vars* )))
You can’t perform that action at this time.
0 commit comments