Skip to content

Commit d467ff1

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-1798: Add new tests to all test-runner namespaces
1 parent a4c627d commit d467ff1

File tree

3 files changed

+42
-67
lines changed

3 files changed

+42
-67
lines changed

src/test/cljs/cljs/test_runner.cljs

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/test/cljs/test_runner.cljs

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
(ns test-runner
22
(:require [cljs.test :refer-macros [run-tests]]
3+
[cljs.primitives-test]
4+
[cljs.destructuring-test]
5+
[cljs.new-new-test]
6+
[cljs.printing-test]
7+
[cljs.seqs-test]
8+
[cljs.collections-test]
9+
[cljs.hashing-test]
310
[cljs.core-test :as core-test]
411
[cljs.reader-test]
512
[cljs.binding-test]
@@ -13,33 +20,47 @@
1320
[cljs.top-level]
1421
[cljs.reducers-test]
1522
[cljs.keyword-test]
16-
[cljs.syntax-quote-test]
1723
[cljs.import-test]
1824
[cljs.ns-test.foo]
25+
[cljs.syntax-quote-test]
1926
[cljs.pprint]
27+
[cljs.pprint-test]
28+
[cljs.spec-test]
2029
[cljs.clojure-alias-test]
21-
[cljs.hash-map-test]))
30+
[cljs.hash-map-test]
31+
[cljs.predicates-test]))
2232

2333
(set! *print-newline* false)
2434
(set-print-fn! js/print)
2535

2636
(run-tests
37+
'cljs.primitives-test
38+
'cljs.destructuring-test
39+
'cljs.new-new-test
40+
'cljs.printing-test
41+
'cljs.seqs-test
42+
'cljs.collections-test
43+
'cljs.hashing-test
2744
'cljs.core-test
2845
'cljs.reader-test
2946
'clojure.string-test
3047
'clojure.data-test
31-
'clojure.walk-test
48+
'clojure.walk-test
3249
'cljs.letfn-test
3350
'cljs.reducers-test
3451
'cljs.binding-test
3552
'cljs.macro-test
3653
'cljs.top-level
3754
'cljs.keyword-test
38-
'cljs.syntax-quote-test
3955
'cljs.ns-test
4056
'cljs.ns-test.foo
4157
'foo.ns-shadow-test
4258
'cljs.import-test
4359
'cljs.pprint
60+
'cljs.spec-test
4461
'cljs.clojure-alias-test
45-
'cljs.hash-map-test)
62+
'cljs.hash-map-test
63+
'cljs.pprint-test
64+
;; TODO: CLJS-1799
65+
#_'cljs.predicates-test
66+
'cljs.syntax-quote-test)

src/test/self/self_parity/test.cljs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
^{:doc "Builds and runs the ClojureScript compiler test suite
33
in self-host mode, ensuring parity of bootstrapped ClojureScript
44
with JVM based ClojureScript.
5-
5+
66
This involves dynamically loading the test suite files at runtime,
77
excercising that they can be compiled by the bootstrapped
88
ClojureScript compiler, and also running the resulting tests."}
@@ -19,7 +19,7 @@
1919
"src/main/clojure"
2020
"src/test/cljs"])
2121

22-
(defn init-runtime
22+
(defn init-runtime
2323
"Initializes the runtime so that we can use the cljs.user
2424
namespace and so that Google Closure is set up to work
2525
properly with :optimizations :none."
@@ -65,7 +65,7 @@
6565
;; Facilities for loading Closure deps
6666

6767
(defn closure-index
68-
"Builds an index of Closure files. Similar to
68+
"Builds an index of Closure files. Similar to
6969
cljs.js-deps/goog-dependencies*"
7070
[]
7171
(let [paths-to-provides
@@ -207,7 +207,7 @@
207207

208208
(def vm (nodejs/require "vm"))
209209

210-
(defn node-eval
210+
(defn node-eval
211211
"Evaluates JavaScript in node."
212212
[{:keys [name source]}]
213213
(if-not js/COMPILED
@@ -218,7 +218,7 @@
218218

219219
(def load-fn (make-load-fn src-paths node-read-file))
220220

221-
(defn eval-form
221+
(defn eval-form
222222
"Evaluates a supplied form in a given namespace,
223223
calling back with the evaluation result."
224224
[st ns form cb]
@@ -256,6 +256,7 @@
256256
#_[cljs.ns-test]
257257
[clojure.string-test]
258258
[clojure.data-test]
259+
[clojure.walk-test]
259260
[cljs.macro-test]
260261
[cljs.letfn-test]
261262
[foo.ns-shadow-test]
@@ -265,9 +266,12 @@
265266
[cljs.import-test]
266267
[cljs.ns-test.foo]
267268
#_[cljs.pprint]
269+
#_[cljs.pprint-test]
268270
[cljs.spec-test]
269271
[cljs.clojure-alias-test]
270-
[cljs.hash-map-test]))
272+
[cljs.hash-map-test]
273+
[cljs.syntax-quote-test]
274+
[cljs.predicates-test]))
271275
(fn [{:keys [value error]}]
272276
(if error
273277
(prn error)
@@ -284,6 +288,7 @@
284288
'cljs.reader-test
285289
'clojure.string-test
286290
'clojure.data-test
291+
'clojure.walk-test
287292
'cljs.letfn-test
288293
'cljs.reducers-test
289294
'cljs.binding-test
@@ -295,9 +300,13 @@
295300
'foo.ns-shadow-test
296301
'cljs.import-test
297302
#_'cljs.pprint
303+
#_'cljs.pprint-test
298304
'cljs.spec-test
299305
'cljs.clojure-alias-test
300-
'cljs.hash-map-test)
306+
'cljs.hash-map-test
307+
'cljs.syntax-quote-test
308+
;; TODO: CLJS-1799
309+
#_'cljs.predicates-test)
301310
(fn [{:keys [value error]}]
302311
(when error
303312
(prn error)))))))))

0 commit comments

Comments
 (0)