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 8
8
9
9
(ns cljs.spec.test
10
10
(:require
11
+ [cljs.analyzer :as ana]
11
12
[cljs.spec :as spec]
12
13
[cljs.spec.impl.gen :as gen]))
13
14
16
17
*ns* if no ns-sym are specified."
17
18
[& ns-syms]
18
19
(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*)))
22
24
23
25
(defn run-all-tests
24
26
" Like clojure.test/run-all-tests, but runs test.check tests
25
27
for all speced vars. Prints per-test results to *out*, and
26
28
returns a map with :test,:pass,:fail, and :error counts."
27
29
[]
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